|
|
|
|
|
by Manishearth
3804 days ago
|
|
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. |
|