Your full name:
Your nameWhat should I call you?
Your emailI'll never spam you. I promise.
Your commentMarkdown is fine.
Post your comment
We use a type system and custom, non-primitive types to model ideas and information (whether that is data or behavior).
While representing the null + type union explicitly in code is better than hiding it implicitly, it can't model the same intent that other approaches can because it's a core language feature and not specific to a domain.
I cover this in a series of blog posts about modeling optional and missing data in code (C#).
Even with C#'s improved pattern matching, Maybe can provide a better dev experience than null by being more declarative than the imperative handling of null.
From your mouth to God's ear.
Published 10 Jul 2022