Reason (Programming Language)

From Handwiki
Short description: Syntax extension and toolchain for OCaml
Reason
Reason-logo.svg
Designed byJordan Walke
First appearedMay 16, 2016; 7 years ago (2016-05-16)[1]
LicenseMIT 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]

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

External links





Categories: [Cross-platform free software] [Extensible syntax programming languages] [Free compilers and interpreters] [Functional languages] [ML programming language family] [Object-oriented programming languages] [Pattern matching programming languages] [Statically typed programming languages] [High-level programming languages]


Download as ZWI file | Last modified: 03/21/2024 11:13:59 | 6 views
☰ Source: https://handwiki.org/wiki/Reason_(programming_language) | License: CC BY-SA 3.0

ZWI is not signed. [what is this?]