-
Notifications
You must be signed in to change notification settings - Fork 520
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
V2 : primitives revisted #697
Conversation
There's a lot of redundant code in the primitives, especially the redundant error messages/strings. I can see two ways to address this.
Perferences anyone? Suggestions? |
I think I'd prefer to see a set of options validator functions. Make for more readable code imo |
@SimonClark thanks. I implemented some common checks (actually more complete), and reworked the code for the primitives. Looks better, more readable, but I still don't like the redundant comments. |
These changes improve the checking of parameters (options) in the primitives.
NOTE: There are also changes to the tests suites to comply with coding standards.
Fixes #633
Fixes #626
All Submissions: