Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I guess there are differences between how static typing is implemented.

I've been using Elm for the last 2 years and it's not that I don't fight the compiler, but I constantly use it to guide me while refactoring. Elm code is extremely readable and types (including Maybe, Result, etc.) just give so much confidence and control to the programmer. While working with an Elm code base, refactoring is a constant, joyful, safe act.

It is true that in many cases good tests help. However often when I work with Python (using type hints), I need to write a unit test just to ensure a contract that I could explicity state using types in Elm. It doesn't feel right.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: