Re:ReScript (previously BuckleScript and Reason)
by gdsdfe on Friday August 14, 2020 @02:34PM
(#24161561)
I'm confused, so reasonml is now rescript?
[ Parent
| on HN ]
Re:ReScript (previously BuckleScript and Reason)
by ccapndave on Friday August 14, 2020 @02:56PM
(#24161837)
ReScript is specifically ReasonML with Bucklescript, which is for transpiling down to Javascript. They also made a few minor syntax changes that make it look a bit more like Typescript.
Re:ReScript (previously BuckleScript and Reason)
by iammiles on Friday August 14, 2020 @02:55PM
(#24161816)
I think it's just when you use ReasonML in conjunction with Bucklescript to target JS. If you're using ReasonML to compile natively then things are the same.
Re:ReScript (previously BuckleScript and Reason)
by orra on Friday August 14, 2020 @03:24PM
(#24162186)
I'm even more confused.
It's like all of BuckleScript and parts of ReasonML is now ReScript. Except BuckleScript has a new C-like syntax unlike the ML syntax that made BuckleScript BuckleScript as opposed to ReasonML.
Re:ReScript (previously BuckleScript and Reason)
by ccapndave on Friday August 14, 2020 @03:43PM
(#24162373)
Basically Bucklescript have forked their own (very similar) syntax from ReasonML and branded the whole syntax + Bucklescript + compiler package as ReScript. I suppose the goal is to eliminate the confusion of having so many moving parts and unify them all under a single ReScript brand.
Re:ReScript (previously BuckleScript and Reason)
by orra on Friday August 14, 2020 @03:50PM
(#24162451)
Thanks. I guess the thing I didn't understand was where this leaves Reason: what is left under the Reason banner? But a fork would explain the overlap.
Re:ReScript (previously BuckleScript and Reason)
by yawaramin on Friday August 14, 2020 @04:00PM
(#24162552)
Lots of things are under the Reason banner:
- The Reason syntax at https://github.com/facebook/reason
- Esy, the npm-like Opam-compatible package manager at https://esy.sh/
- Reason native tooling in https://reason-native.com/
- Not forgetting that Dune and Odoc, two standard tools in the OCaml ecosystem, both support Reason syntax.
EDIT: and I forgot about the various editor plugins which provide Reason support, the most well-known is probably https://marketplace.visualstudio.com/items?itemName=jaredly....