Ask HN: What's so awesome about static types
I like dynamic languages a lot. To me, I can get way more reuse from a library without having to use monads or some similar construct. Still, there are a bunch of smart people in the Scala/Haskell/ML camps that love static typing. What's the benefit?
2 comments
[ 3.0 ms ] story [ 12.5 ms ] threadThis leads to 2 killer features:
- 100% reliable refactoring
- Sophisticated code navigation (call graph, inheritance graphs, go to definition are 3 that I used dozens of times a day, for example)
Of course, even languages that are traditionally thought of as static, like Java, have some dynamic features, so the above "100%" isn't quite reached in practice.