Hacker News new | past | comments | ask | show | jobs | submit login

> Then I learned about how they decided to throw away Javascript interops.

Is this true? I'm not an Elm user yet, but I've been eyeing it and my understanding was that there was interop:

https://guide.elm-lang.org/interop/

It'd be a big deal if that weren't there -- FP stuff I may or may not be used to? Bring it on. Stretch my CS knowledge? Cool. No 3P libraries? That'd make it wrong for a lot of use cases.




Elm has interop, it's called ports.

What the poster is referring to is that Elm 0.18 had an unsupported, undocumented way of calling javascript code directly. This was inherently unsafe (Javascript can throw exceptions and Elm doesn't support exceptions, let alone catching them) and people were abusing it, so it was removed from the language in 0.19.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: