Hacker News new | ask | show | jobs
by paulddraper 3168 days ago
See the Option/Maybe pattern, which uses sum types rather than unions or sentinel values.

https://www.lucidchart.com/techblog/2015/08/31/the-worst-mis...