Skip to content

Conversation

@MoreDelay
Copy link

This is an experiment on how to recover from errors using move semantics. This adds an additional (generic) field to Exn<E, R> which we can move out using exn.recover(). By default we have no recovery value so all previous uses of Exn are unchanged.

I also added an example to show how one would use this recovery mechanism.

This PR is only intended as a reference for issue #43. There may be better approaches on how to achieve this goal.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant