3 ms·
The biggest value of static types is when you go to edit some code written years and years ago and you can tell what the hell the intended usage was without dig
by emodendroket 9y ago
The biggest value of static types is when you go to edit some code written years and years ago and you can tell what the hell the intended usage was without digging through the method
- Guthur 9y agoNot even remotely universally true. I've seen plenty of static code that is as obtuse as any dynamic code. Authorship holds far more sway than dynamic vs static.
- emodendroket 9y agoIt is 100% less likely that you'll run into out-of-date docs wrongly describing the types of the input arguments and return types. Of course the code might still be obtuse but the type declarations are a form of documentation that the compiler ensures is still up-to-date.