News for hackers. Stuff that matters.
Re:What is wrong with NULL by bcoates on Monday August 31, 2015 @05:22PM (#10149167)
Not completely. non-nullable by default is nice, ignoring possible nulls is nice, but Haskell's Maybe still suffers from premature generality by conflating all forms of absence. A 'Maybe T' is fundamentally, context-sensitively, not equivalent to any other 'Maybe T' in the same way all 'T's are. This is bad.

edit: carsongross beat me to what I'm talking about with a better explanation: https://news.ycombinator.com/item?id=10149129

Re:What is wrong with NULL by lmartel on Monday August 31, 2015 @05:46PM (#10149278)
Can't you just handle this with something like `Either ErrCode T`?

(And if not, please do explain why!)

Re:What is wrong with NULL by bcoates on Monday August 31, 2015 @06:40PM (#10149557)
You can, but the existence (and use in libraries!) of Maybe is still bad for the same reason having 'null' is bad. It's an anti-feature that would enrich the language by not existing.
Re:What is wrong with NULL by dragonwriter on Monday August 31, 2015 @05:29PM (#10149218)
When you need to distinguish missing values, that's why Haskell has Either. Maybe is for when you only care if there is a good result are not, Either covers the case when you need to distinguish different kinds of "not".