Native Reason, ReasonML BuckleScript Flavor, REScript even OCaml?! WTF are you guys doing?
Native ReasonML (or Reason Native), .re files
Native Reason is just a syntax of OCaml and is interchangeable with OCaml. Native because you can use it directly with dune or any other OCaml tooling and in the end you compile your project/code to a binary.
ReasonML BuckleScript flavor, .re files
It's the most known Reason by JS developers. It presents the same specs of Native ReasonML with the few additions of BuckleScript specific syntax which include:
-> called fast-pipe operator.
BuckleScript bindings. [@bs.import], [@bs.send], %raw, etc.
[@react.component] sugar
As they are BuckleScript specific additions they do not exist in Native Reason. Therefore, they won't work in there if you are compiling your reason with dune.
REScript, .res files
REScript is a Native Reason inspired language to make it even easier for JS devs. The main characteristic of it is that unlike pure ReasonML it is not interchangeable with OCaml thus we can't use the same OCaml tooling with it.
ReScript is ReasonML + BuckleScript. BuckleScript was rebranded as REScript.
Native Reason, ReasonML BuckleScript Flavor, REScript even OCaml?! WTF are you guys doing?
Native ReasonML (or Reason Native), .re files
Native Reason is just a syntax of OCaml and is interchangeable with OCaml. Native because you can use it directly with
dune
or any other OCaml tooling and in the end you compile your project/code to a binary.ReasonML BuckleScript flavor, .re files
It's the most known Reason by JS developers. It presents the same specs of Native ReasonML with the few additions of BuckleScript specific syntax which include:
->
called fast-pipe operator.[@bs.import]
,[@bs.send]
,%raw
, etc.[@react.component]
sugarAs they are BuckleScript specific additions they do not exist in Native Reason. Therefore, they won't work in there if you are compiling your reason with
dune
.REScript, .res files
REScript is a Native Reason inspired language to make it even easier for JS devs. The main characteristic of it is that unlike pure ReasonML it is not interchangeable with OCaml thus we can't use the same OCaml tooling with it.
ReScript is ReasonML + BuckleScript. BuckleScript was rebranded as REScript.
Retweet this
Subscribe to the Fake News channel to get blog posts and content updates!