News for hackers. Stuff that matters.
Re:Ask HN: Best talks of 2018? by nadagast on Friday December 28, 2018 @01:49AM (#18775233)
I agree that there are reasons for Maybe a to be a different type from (a | nil) but there are also good reasons to prefer (a | nil). Like most things, it's a set of tradeoffs. What I appreciated about this talk was that he went into the benefits of thinking about types in this way. It's (relatively) common to see the benefits of Maybe a explained, but more rare to see the benefits of full union types explained.

There are no comments on this comment yet.