Mild-Mannered Canadian Fury

Doug Stephen is Politely Peeved

The Definitive Reference To Why Maybe Is Better Than Null

Fri, 19 Apr 2013 Ā«permalinkĀ»

Here’s a nerdier link for the real software geeks out there; a quick discussion of Maybe.

There’s a good chance that a lot of people have never really encountered Maybe. During my hiatus from writing here, I spent a lot of time studying and becoming super interested in functional programming, specifically Haskell, which was my first time encountering the “Maybe” construct; effectively a tactic for elevating null-checking in to a language’s statically checked type system instead of introducing a certain aspect of fragility in to the runtime. It’s a pretty eye-opening take on the idea of an invalid/garbage/failed value, and I have to say much nicer to deal with than nullity.