3 ms·
The core question is, "have you ever experienced a runtime error?" Have you ever spent time debugging a runtime error deployed to production? You can't get tho
by aarpmcgee 8y ago
The core question is, "have you ever experienced a runtime error?" Have you ever spent time debugging a runtime error deployed to production?
You can't get those in Elm.
- sawady 8y agoList.tail []
- yakshaving_jgt 8y agotail : List a -> Maybe (List a) Nice try though. https://github.com/elm/core/blob/master/src/List.elm#L548 https://github.com/elm/core/blob/master/src/List.elm#L548
- sawady 8y agoHaha, sorry. You know what I mean, a partial function.
- yakshaving_jgt 8y agoExcept in Elm, the function isn't partial. You're thinking of the partial functions from Haskell's Prelude.
- StreamBright 8y agohttps://medium.com/@eeue56/top-6-ways-to-make-your-elm-app-crash-at-runtime-562b2fa92d70 https://medium.com/@eeue56/top-6-ways-to-make-your-elm-app-c...
- yakshaving_jgt 8y agoYou’ve already posted this. It’s intellectually dishonest to point to implementation bugs as fundamental flaws.
- chickenfries 8y agoThis matters in the real world question of “should I use elm” even if it doesn’t matter to the theoretical question of “is the elm language sound?”. Especially since there is only one implementation of elm that updates very infrequently.
- yakshaving_jgt 8y agoOnly insofar as you would check any technology for how well it’s made generally. After a couple of years running in production, my opinion is that it is well-made generally. Finding clever ways to break a technology isn’t a fair reflection of “real world” use, in my opinion.
- chickenfries 8y agoFair enough. I don’t considering your complaints about Math.random() or division by zero to be a fair reflection of “real world use.”
- StreamBright 8y agoWhat are you talking about? You said no runtime errors because you have pure functions and now it turns out that actually implementation also matters????? Imagine my shock................
- chickenfries 8y agoNo the core question is “does the time and effort spent on those cases justify the cost of switching to elm?” I have to weigh the benefit of no runtime exceptions against things like having to write interop code for libraries that I may have to integrate with. It might make sense for other people. It doesn’t add up for me.