Reason (programming language)
Designed by | Jordan Walke |
---|---|
First appeared | May 16, 2016[1] |
Stable release | 3.10.0[2]
/ September 10, 2023 |
License | MIT License |
Filename extensions | .re, .rei |
Website | reasonml |
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.[3] 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.[4]
The Reason community officially provides ReasonReact as a solution for React-based web applications.[5]
BuckleScript and ReScript[edit]
Reason was originally compiled to JavaScript using the BuckleScript compiler,[6] 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.[7]
The ReScript compiler continues to support Reason syntax, and the two languages share that part of the toolchain.
See also[edit]
- 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[edit]
- ^ Simple, fast & type safe code that leverages the JavaScript & OCaml ecosystems: facebook/reason, Facebook, 2019-03-23, retrieved 2019-03-23
- ^ "Release 3.10.0". 10 September 2023. Retrieved 19 September 2023.
- ^ "What is ReasonML?". 2ality. Retrieved 2019-03-23.
- ^ "Overview | ReScript Documentation". rescript-lang.org. Retrieved 2020-08-10.
- ^ "ReasonReact". GitHub.
- ^ "BuckleScript". bloomberg. Retrieved 2022-09-11.
- ^ "BuckleScript & Reason Rebranding". rescript-lang. Retrieved 2022-09-11.
External links[edit]
- Cross-platform free software
- Extensible syntax programming languages
- Free compilers and interpreters
- Functional languages
- ML programming language family
- Object-oriented programming languages
- OCaml programming language family
- Pattern matching programming languages
- Statically typed programming languages
- Programming languages created in 2016
- High-level programming languages
- Software using the MIT license
- Programming language topic stubs