Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: