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
Filter should use exceptions #34
Comments
|
I don't think so. |
|
Wish granted! See the new develop-2 work, via |
|
So now filters can be called either as invokables or with |
|
Or as ->values(), yes. Only __invoke() will throw the exception. |
|
perfect On Mon Dec 29 2014 at 3:45:38 PM Paul M. Jones notifications@github.com
|
Validating code ends up requiring lots of if statements. Filter should be callable without worrying about its response, with exceptions throw to halt execution, when necessary.
for example:
Boilerplate:
Before:
After:
The text was updated successfully, but these errors were encountered: