4 ms·
out of curiosity (not meant snidely), do you have an example of a case where the weaker type system resulted in serious problems?
by ttz 1y ago
out of curiosity (not meant snidely), do you have an example of a case where the weaker type system resulted in serious problems?
- DanielHB 1y agoPretty much any null pointer deference error ever? But it is hardly ever the weak type system that is at fault, just good use of a stronger type system could have prevented the issue. Once you start to make "invalid states unpresentable" and enforcing those states at the edges of your type system suddenly a lot of bizarre errors don't happen anymore.
- ttz 1y agoNPEs are also present in a lot of languages with "stronger" type systems though. Is there a specific language you're comparing against?