3 ms·
Just want to say I'm really excited about Bucklescript and the collaboration with Reason. I started using the Reason syntax, but soon ended up migrating my pro
by jordwest 9y ago
Just want to say I'm really excited about Bucklescript and the collaboration with Reason.
I started using the Reason syntax, but soon ended up migrating my project to vanilla OCaml as I found the syntax less JavaScript-like and easier to follow when thinking functionally vs imperatively. Also, there are many more tutorials out there (currently) for OCaml than there are for the Reason syntax.
As I understand it the two syntaxes are pretty much interchangeable, both use the same underlying AST, the same compile-to-JS backend (Bucklescript) and can even be auto-converted using `refmt`.
Also, if it's important to you, only the Reason project seems to still be encumbered by Facebook's patent grant, while the Bucklescript project was originally started by Bloomberg and now seems to be an independent project without the additional patent clause.
Both projects are really exciting as a practical way to bring type safety into the browser, with ridiculously fast compile times and tiny bundles.
- rlp 9y agoFor learning Reason, I found this page invaluable: https://reasonml.github.io/try https://reasonml.github.io/try You can put in Reason or OCaml and it will spit out the other. I used it to work through Real World OCaml in Reason.