4 ms·
I had the same experience, but I also have to say that the static type systems of some FP-languages feel really light-weight. So year, static typing doesn't bu
by k__ 9y ago
I had the same experience, but I also have to say that the static type systems of some FP-languages feel really light-weight.
So year, static typing doesn't buy you much, but in some languages it's at least cheap.
- hwayne 9y ago> So year, static typing doesn't buy you much, but in some languages it's at least cheap. I think this is key. The benefit of static typing isn't that they provide safety, it's that they provide _low-cost_ safety. For a large class of problems, types are cheaper than tests are. For other classes, tests are cheaper than types. The main downside of nonstatic languages is that you have to use tests for everything, even that class where types are a better choice.