News for hackers. Stuff that matters.
Re:Rust and the Blub Paradox by Manishearth on Sunday January 24, 2016 @03:30AM (#10961945)
Rust errors _are_ monads. That style of error handling is known as "monadic error handling".

When the blog post says "you don't need to learn monads", it's being tongue-in-cheek. He's pointing out that whilst Rust errors are monadic, you don't need to learn monads to work with them.

To be fair to Haskell, it doesn't force you to learn what a monad is either (ha!), but often the full details of what a monad is are emphasized before teaching IO or error handling. Which works somewhat, but also gives monads their infamy.

There are no comments on this comment yet.