3 ms·
> Static typing helps a lot to catch basic type errors > but it is surely not the "Messiah" of code safety. I've been wondering why that is, and one reason I
by mpweiher 10y ago
> Static typing helps a lot to catch basic type errors
> but it is surely not the "Messiah" of code safety.
I've been wondering why that is, and one reason I can think of is that testing verifies values. This also implicitly verifies the types of those values.
- codygman 10y agoThe type system can verify values as well, but can do so more exhaustively than you can practically test.