Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Add a catch_all adaptor #42

Open
viboes opened this issue Apr 19, 2014 · 0 comments
Open

Add a catch_all adaptor #42

viboes opened this issue Apr 19, 2014 · 0 comments
Assignees

Comments

@viboes
Copy link
Collaborator

viboes commented Apr 19, 2014

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.

e.mbind(catch_all(f));
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant