3 ms·
> no unhandled runtime errors! (yes it is true, no more errors with Elm) I used to work with elm some years ago and my coworkers claimed this as part of their
by the_gastropod 3y ago
> no unhandled runtime errors! (yes it is true, no more errors with Elm)
I used to work with elm some years ago and my coworkers claimed this as part of their reasoning for choosing elm. Shockingly, we still had runtime errors! Elm helps reduce some type system based runtime errors. But that’s only a subset of exceptions, and it’s not perfect at even catching those. Try this in elm:
div [ attribute "@style" "color: green" ]
It’ll compile just fine. And crash completely at runtime.
- cies 3y agoWow, it indeed crashes at startup (a very reasonable place to "crash" when you avoid all safety mechanisms and put an @ in an HTML attribute key). There are some fully type safe CSS systems in Elm, but they are 3rd party libs.