4 ms·
To reinforce your point: static typing doesn't just force you to fix some bugs earlier, but it also forces you to spend more time doing design upfront, often wh
by danmaz74 7y ago
To reinforce your point: static typing doesn't just force you to fix some bugs earlier, but it also forces you to spend more time doing design upfront, often when you still don't have clear specs. That can be a big drag when you need to do a lot of experimentation/iteration.
- realharo 7y agoBut you don't need to have a final design straight from the beginning. You can start with only what you need right now and evolve the types/schema over time. In fact, proponents of static typing would argue that the types make your code easier to refactor later, because you will be aware of all the usages, and able to move things around with confidence. The drawback is that you need to make the entire codebase correct (or commented out) every time, not just some isolated piece you're experimenting on.