Logo

dev-resources.site

for different kinds of informations.

Elm's guarantees

Published at
12/7/2021
Categories
elm
webdev
frontend
typescript
Author
lucamug
Categories
4 categories in total
elm
open
webdev
open
frontend
open
typescript
open
Elm's guarantees

A short reminder about the guarantees of the Elm language:

āœ… No Runtime Exceptions

Thanks to the absence of null/undefined, errors treated as data, and a sound type systems, Elm guarantees that our compiled JavaScript code never throws errors at runtime.

āœ… 100% Immutable Data

All data in Elm is immutable. So no surprises when you need to find a bug and there is a wrong value somewhere. You can easily find who created that value.

āœ… 100% Pure Functions

All functions must be pure, otherwise, they don't compile. Pure functions have the usual benefits of being easy to read, easy to test, etc.

āœ… All Types Are Checked

Elm is based on a provable type system so types are always correct and type annotations are always optional.

āœ… No surprises when upgrading dependencies

Elm enforces Semantic Versioning. This means that your code is guaranteed to compile also after you upgrade your dependencies.

šŸŽ‰ Bonus: Guarantees also apply to all dependencies!

All these guarantees apply not only to your code but also to all your dependencies!

To learn more: elm-lang.org

ā¤ļø

Header photograph by Clem Onojeghuo

Featured ones: