Re:"In Haskell we think for quite a long time before startin...
by chc on Monday December 27, 2010 @01:11PM
(#2043120)
But the thing is, null/nil/incorrect type references (the cause of NPEs and doesNotUnderstand:s) aren't a problem in Haskell. If you try to pass the wrong type, you'll know right away, before you even get to your hand-written tests — and values that might be Nothing (the Haskell nil) are a different type than normal values. A plain-jane String that is always a list of characters is a different type than a Maybe String and the compiler will catch the mistake for you if you forget that.
[ Parent
| on HN ]
There are no comments on this comment yet.