2 ms·
> unlike other ML-family languages I'm curious about this comment, for my current project I chose reasonML over Elm very much because reasonML plays well with
by Hermitian909 7y ago
> unlike other ML-family languages
I'm curious about this comment, for my current project I chose reasonML over Elm very much because reasonML plays well with old javascript and it plays nice with the rest of the web.
My bundle is very small, compile times fast, and interop with even quite old JQuery libraries is a breeze.
Is there something else I'm giving up that I'm not aware of?
- elbear 7y agoElm doesn't allow you to call JavaScript code in Elm anymore. The reasoning is to prevent runtime exceptions. Instead, you have to go through something called ports, which is like passing JSON around. That's why there are people who complain about the Elm-JavaScript interop.
- Hermitian909 7y agoRight, when I was first exploring alternatives to Javascript was around the time Elm was removing first class FFI's in favor of ports and it was the primary reason I chose not to use it. But the poster I responded to was saying that Elm made considerations about the wider web that none of the ML family languages had and I was hoping to find out what those might be since I'm not aware of any non-language advantages of Elm over ReasonML.