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

Simplify generated code for "side-effects only" custom keywords #393

Closed
epoberezkin opened this issue Jan 5, 2017 · 1 comment
Closed

Comments

@epoberezkin
Copy link
Member

epoberezkin commented Jan 5, 2017

See #141 (comment)

If keyword always returns the same validation result and is used for side-effects (mutating data, logging, accumulation, updating errors, etc.) passing validation result via keyword definition (valid: true/false) would both simplify the keyword function (no need to return true) and substantially simplify the generated code - e.g., no need to define/return error that is only used in case validation fails.

@epoberezkin
Copy link
Member Author

In 4.11.0 and 5.0.1-beta.1

@epoberezkin epoberezkin removed this from the 5.0.0 milestone Jan 21, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

1 participant