Expected can be viewed as interfacing between a monadic code and an exception-throwing code. It could be convenient to have an adaptor that catch all the exception thrown and transform then on a expected <exception_ptr, T>.
This adaptor could be used with fmap, mbind and then method.
Expected can be viewed as interfacing between a monadic code and an exception-throwing code. It could be convenient to have an adaptor that catch all the exception thrown and transform then on a expected
<exception_ptr, T>
.This adaptor could be used with fmap, mbind and then method.