Reason (programming language)

Short description: Syntax extension and toolchain for OCaml

Reason

Designed by| Jordan Walke
First appeared| May 16, 2016; 9 years ago (2016-05-16)[1]
License| MIT License
Filename extensions| .re, .rei
Website| {{{1}}}

Reason, also known as ReasonML, is a syntax extension and toolchain for OCaml created by Jordan Walke, who also created the React framework, at Facebook.[2] Reason offers a syntax familiar to JavaScript programmers, and compiles to native code using OCaml's compiler toolchain. Reason code may also be compiled to JavaScript using the ReScript compiler.[3]

The Reason community officially provides ReasonReact as a solution for React-based web applications.[4]

## Contents

* 1 BuckleScript and ReScript
* 2 See also
* 3 References
* 4 External links

## BuckleScript and ReScript

Reason was originally compiled to JavaScript using the BuckleScript compiler,[5] which was created at Bloomberg L.P.

In 2020, BuckleScript was rebranded to ReScript, essentially creating a separate language that had different syntax from Reason and only compiled to JavaScript.[6]

The ReScript compiler continues to support Reason syntax, and the two languages share that part of the toolchain.

## See also

* Elm: a functional language that uses an abstraction called ports to communicate with JavaScript
* PureScript: a strongly-typed, purely-functional programming language that compiles to JavaScript

## References

1. ↑ Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems: facebook/reason, Facebook, 2019-03-23, https://github.com/facebook/reason, retrieved 2019-03-23
2. ↑ "What is ReasonML?". http://2ality.com/2017/11/about-reasonml.html.
3. ↑ "Overview | ReScript Documentation" (in en). https://rescript-lang.org.
4. ↑ "ReasonReact". https://reasonml.github.io/reason-react/en/.
5. ↑ "BuckleScript". https://www.bloomberg.com/company/press/open-source-at-bloomberg-introducing-bucklescript/.
6. ↑ "BuckleScript & Reason Rebranding". https://rescript-lang.org/blog/bucklescript-is-rebranding.

## External links

* ReasonReact
* on GitHub

* v
* t
* e

Programming languages

* Comparison
* Timeline
* History

* APL
* Assembly
* BASIC
* C
* C++
* C#
* COBOL
* Elixir
* Fortran
* Go
* Groovy
* Haskell
* Java
* JavaScript (JS)
* Julia
* Kotlin
* Lisp
* Lua
* MATLAB
* Objective-C
* OCaml
* Pascal
* Perl
* PHP
* Python
* R
* Ruby
* Rust
* Scala
* Shell
* Smalltalk
* Swift
* TypeScript
* Visual Basic .NET (VB.NET)
* more...

* Category
* Lists
* Alphabetical
* Categorical
* Generational
* Non-English-based

0.00

(0 votes)

Original source: https://en.wikipedia.org/wiki/Reason (programming language). Read more

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Reason_(programming_language)&oldid=192573"
*[v]: View this template
*[t]: Discuss this template
*[e]: Edit this template