News for hackers. Stuff that matters.
Re:The Bagel Language by nicoburns on Sunday September 19, 2021 @07:26PM (#28588899)
FWIW, one of the primary complaints of heard about Elm is that there are no escape hatches, so if it doesn't support your use case you just straight up can't use it. I've seen several reports of people avoiding it for future projects on that basis.

In contrasts, TypeScripts success seems to be in no small part due to the fact that it's trivial to drop down to the full flexibility of JavaScript as and when needed, and that it has the full JS ecosystem available to it.

Re:The Bagel Language by rtfeldman on Sunday September 19, 2021 @08:57PM (#28589404)
> one of the primary complaints of heard about Elm is that there are no escape hatches, so if it doesn't support your use case you just straight up can't use it.

Elm has JavaScript interop.

Here's the section of the guide that covers how to use it:

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

Re:The Bagel Language by brundolf on Sunday September 19, 2021 @09:04PM (#28589437)
It technically has it, but I think it's fair to say it's very unergonomic and only useful for dire needs
Re:The Bagel Language by brundolf on Sunday September 19, 2021 @07:31PM (#28588924)
Yeah, there's a definite trade-off (or really, a spectrum of possible trade-offs), which is why I'm still mulling it over