News for hackers. Stuff that matters.
Re:The Logical Disaster of Null by taeric on Wednesday May 09, 2018 @11:43PM (#17036210)
I've seen programs that crash given a none. Often explicitly called out with a message saying that a value must be supplied. So, a good thing in those cases.

I'm not optimistic enough to think it would always be a good thing, though. I've actually seen some where the lack of a value was not noticed because people just mapped over the optional and did not code for the missing case. Effectively coercing the value to whatever the zero was.

Now, I can't claim empirically that these would outnumber null pointers. I just also can't claim they don't exist.

Re:The Logical Disaster of Null by fiddlerwoaroof on Thursday May 10, 2018 @12:38AM (#17036423)
Yeah, I have this intuition that options create there own horde of problems because of the way that map/<$> propagate None so that, once you get an unexpected None, it becomes harder to trace the source of the problem. A null pointer exception or segfat, on the other hand, will give you a stack trace or similar that will help you pinpoint the source of the problem.