3 ms·
> Static typing provides a false sense of safety, since it can only prove the absence of certain errors statically. That is as blatant a straw man as I have se
by mannykannot 9y ago
> Static typing provides a false sense of safety, since it can only prove the absence of certain errors statically.
That is as blatant a straw man as I have seen recently. I have never met someone who mistook static types for a guarantee of correctness, though I have met several people who did not understand why testing to 100% statement coverage does not do that.
The authors would be well-advised to remove this sort of thing if they want to be taken seriously, and in general, striving to "do our best to make it provocative" is not an effective way to influence people, no matter how smart it makes you feel.
- astrange 9y agoI constantly see people discuss Haskell as if it prevented you from writing incorrect programs. But in fact static typing as it’s usually implemented does nothing for numeric programs/math errors. It won’t even catch dividing by 0. Related: saying a program is correct because it’s been “security audited” (someone read the source once) or “formally verified” (someone wrote the program twice and didn’t make any typos).
- mannykannot 9y agoYour dismissive characterizations of security auditing and formal verification are way off the mark.