3 ms·
(Disclaimer: I only have experience with Elm, not ReasonML) Their goals might align quite a lot (functional programming for the browser; compiling to JS), but
by mjaniczek 9y ago
(Disclaimer: I only have experience with Elm, not ReasonML)
Their goals might align quite a lot (functional programming for the browser; compiling to JS), but Elm seems to me more "pure" than ReasonML, and places extra emphasis on correctness ("no runtime errors").
For example, ReasonML allows you to put JS code inside its source [1]. Which might be great if you want that escape hatch, but might mean that runtime errors are common when working with ReasonML. Elm trades a bit of convenience for the enforced reliability.
[1]: https://reasonml.github.io/docs/en/interop.html https://reasonml.github.io/docs/en/interop.html
- StreamBright 9y agoYep, this is exactly why we use ReasonML instead of Elm. I want to be able to write inpure code when I need it.