3 ms·
Yes, why do something automatically when you can do manual work!
by 201709User 9y ago
Yes, why do something automatically when you can do manual work!
- icebraining 9y agoI think the idea is that you have to write tests anyway.
- whyever 9y agoNo, you don't have to write tests for invariants enforced by the type system.
- ubernostrum 9y agoI think the bigger idea is that people who've never actually written serious code in a dynamically-typed language assume that people who do always write a bunch of extra unit tests to assert correct types, assert behavior on incorrect types, etc. etc., and that programs crashing due to type errors is a super frequent occurrence. None of those things are true.
- tome 9y agoAnd yet there are dynamic language proponents in this very subthread suggesting that's exactly what everyone should do.