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

Adding errors to structs api #60

Closed
skbolton opened this issue Dec 21, 2018 · 0 comments
Closed

Adding errors to structs api #60

skbolton opened this issue Dec 21, 2018 · 0 comments

Comments

@skbolton
Copy link

skbolton commented Dec 21, 2018

Thank you so much for this library. I love how modules have MyStruct.valid?(data). Would it be possible to have MyStruct.errors(data) get put on structs also? My reasoning is partly out of convenience but also because I would like Vex to be an implementation detail. This would make the module have the perfect api for outside callers to work with it without needing to know to call Vex.errors(a_struct). I could even do the PR for this if you guys feel its a good idea?

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