Re:Advanced programming languages
by chaosmachine on Monday May 24, 2010 @04:26PM
(#1375596)
Even with perfect grammar, spelling, and logic checks, you're still going to lose sometimes:
I mistyped a single letter in an email and offended a coworker for life. He was on the road; I was in the office. I argued persuasively about a difference in design, ending with "When you get it, we can talk some more". I had intended to say "When you get in, we can talk some more".
I once commented on something, intending to say "Uh, have you considered..." But I wrote:
Ugh. Have you considered...
I had some 'splainin to do!
But that's the thing about Hindley-Milner — most typos and logic errors will result in a different type than the one you intended. You'll get an infinite type or a number where you meant to get a list, etc. There are some bugs that can make it through, but the number of errors the type system can catch is amazing — it's actually close to being a logic checker.
It's type-checking all the way up.