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

Flat argument list instead of nested tuples for closures in Validation methods #1

Open
haraldmaida opened this issue Aug 31, 2019 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@haraldmaida
Copy link
Member

Currently the closures in the methods Validation::and_then and Validation::map` get passed nested tuples which can become really ugly with more and more arguments.

We should find a way to flatten the values collected so far by the Validation type, so that the closures either get a list of arguments passed or one flat tuple with all the values.

This will be a breaking change in the API, but I think the advantage outweighs any pain with changing existing implementations.

@haraldmaida haraldmaida added the enhancement New feature or request label Aug 31, 2019
@haraldmaida haraldmaida self-assigned this Aug 31, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant