Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Result 'monads' for responses #3

Open
peterberkenbosch opened this issue Apr 14, 2020 · 0 comments
Open

Use Result 'monads' for responses #3

peterberkenbosch opened this issue Apr 14, 2020 · 0 comments
Assignees

Comments

@peterberkenbosch
Copy link
Owner

Right now we rely on Exceptions being thrown when operations are unsuccessful. This makes using this gem a bit dirty.

An implementation right now would need to rescue specific Exceptions to handle the flow and/or re-raise the Exception.

Opening this issue to come up with a better solution for this, wrapping responses in a Response object that implements success? and encapsulates data returned.

also did a quick poll on twitter

@peterberkenbosch peterberkenbosch self-assigned this Apr 14, 2020
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

No branches or pull requests

1 participant