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

Maybe is not the simplest monad, Identity is, and I think Maybe is an excellent example of a monad.


Identity is simpler, but it's not very interesting. It's hard for a beginner to see why you would ever use the Identity monad.

Maybe is the simplest interesting monad, which makes it a good candidate for explaining monads to beginners.




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

Search: