Hacker Newsnew | past | comments | ask | show | jobs | submitlogin
The Algebra of Algebraic Data Types, Part 2 (chris-taylor.github.io)
68 points by llambda on June 9, 2013 | hide | past | favorite | 1 comment


I think this is one of the clearest explanations, to me, of the similarity and differences between nullable & Maybe types. Both encode "n + 1" possible values, but the nullable version pretends it encodes only "n" values, while Maybe makes it explicit.




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

Search: