3 ms·
> Preferably during running of your unit-tests. Which means you need more unit test coverage, have more tests to maintain, and your code structure becomes more
by lmm 4y ago
> Preferably during running of your unit-tests.
Which means you need more unit test coverage, have more tests to maintain, and your code structure becomes more brittle.
> Static typing does not prevent runtime errors does it?
Often it does; and if a validation rule is too complex or externally-dependent to enforce at compile time, static typing at least lets you push checking to the start of an operation, rather than in the middle of your computation.