3 ms·
Not exactly. You may catch exceptions in between the computations, whereas with monads you have to unpack and match the error. You can replicate the monad beh
by PartiallyTyped 4y ago
Not exactly.
You may catch exceptions in between the computations, whereas with monads you have to unpack and match the error.
You can replicate the monad behaviour by catching the exceptions at the top level. I find that this approach is generally cleaner than intermediate exceptions but is more restrictive.
- int_19h 4y agoThat's what I meant by "implicit rebind". But the fact that it's implicit for every expression doesn't make it any less of a monad.
- PartiallyTyped 4y agoI see, thanks for the clarification.