DEV Community

Discussion on: Static Typing: a Personal Journey

Collapse
 
kspeakman profile image
Kasey Speakman

One of the things you have to get used to with Elm is the compiler. Most of the time, if it compiles, it will not crash. So, the compiler catches (and therefore complains) a lot, moreso than most other compiled languages. The compiler errors have to become less of a smack on the head and more of a TODO list. This makes refactors really nice. Change stuff, then fix all the items the compiler complains about, and you can be reasonably sure it all still works.

Collapse
 
bmakuh profile image
Ben Makuh

That's a great way to frame it. Viewing it as a TODO list makes it feel much more helpful than like something you have to fight.