3 ms·
> I don't remember when was the last time I've made a type related screw up Maybe the languages you are using aren't capable of encoding the kind of screw ups
by the_af 10y ago
> I don't remember when was the last time I've made a type related screw up
Maybe the languages you are using aren't capable of encoding the kind of screw ups you do make as type errors? Typos are trivially covered by most static type checkers, but like you say that's not a very interesting kind of error (except, of course, with languages that silently introduce fresh variables. Those can introduce hard to find errors...). More interestingly, they can also handle other problems like dereferencing nulls, not considering all possible patterns of a value (think "case" conditions), calling a function on the wrong kind of value, etc.