4 ms·
> Monads are a superior form of error handling than exceptions No, they're not, not by a long shot. As soon as you start having multiple monads returned by fun
by hota_mazi 9y ago
> Monads are a superior form of error handling than exceptions
No, they're not, not by a long shot. As soon as you start having multiple monads returned by functions and you need to combine them, you need to introduce monad transformers and your code turns into a giant untractactable spaghetti mess.
Exceptions have issues but they are the sanest way to handle errors today.
- marcosdumay 9y agoWell, if you start doing more with monads than error handling, you will have complex interactions between them. They are still superior for error handling, exceptions would have a more complex interaction with them.
- placeybordeaux 9y agoI honestly found error codes in go to be pretty pragmatic. You pay a small cost on the writing side, but it's very clear and straight forward.