Skip to content

Use Result 'monads' for responses #3

Description

@peterberkenbosch

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

Activity

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

Metadata

Metadata

Labels

No labels
No labels

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions