Re:Do we need to move away from Elm?
by StreamBright on Saturday March 03, 2018 @06:22PM
(#16512302)
Yep, this is exactly why we use ReasonML instead of Elm. I want to be able to write inpure code when I need it.
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