3 ms·
This. And I would go so far as to argue that the up from cost of adding types is not as big as people make it out to be. If I don't specify a type in the input
by omegalulw 5y ago
This. And I would go so far as to argue that the up from cost of adding types is not as big as people make it out to be.
If I don't specify a type in the input, I have to check in the method body that what was passed in was something usable. Skip this is very bad, the best case scenario is something your code will error out on wrong input, the worst case is it computes the wrong result with no errors.
- radicalbyte 5y agoI can spend a day coding* in a typed language without compiling, and my code more often compile than not work first time with the tests all green. The exact same thing happens with dynamic languages - as long as I skip the tests (or write bad tests).
- paiute 5y agohave you ever seen a Java app log? you still got to check and handle on public facing functions.