A Non-Unified Ecosystem
The ReasonML system is not completely unified. For example, the https://sketch.sh website lets you enter scripts and see them executed immediately. Its back end uses native code—as of this writing, it can’t use the Js library, which is tied to the JavaScript world, or the Belt library, which is a standard library shipped with BuckleScript that is also tied to the JavaScript world. On the other hand, the “try it” option at https://reasonml.github.io/en/try.html lives in the BuckleScript world and allows you to use both Js and Belt.
There are also differences between BuckleScript and native OCaml, which you may see summarized at https://bucklescript.github.io/docs/en/difference-from-native-ocaml. Native and JavaScript ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access