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

Validate arguments to reduce the chance of obscure error messages #18

Open
blancas opened this issue May 6, 2018 · 0 comments
Open

Comments

@blancas
Copy link
Owner

blancas commented May 6, 2018

This is a follow-up on #17.
The heavy use of nested closures and high-order functions results in arguments to a function being used far away from their source. When there's an error, looking at the stacktrace doesn't tell much of what's happening.

Validating arguments when possible provides a fail-fast (or faster) that should be better than the current situation. Sounds like spec could be useful here, but this lib shouldn't require 1.9.

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