by int_19h · 4y ago · 0 comments
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.