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
Accept generator function for error message #62
Comments
🤔 |
How does this look @davidje13? https://github.com/alexreardon/tiny-invariant/pull/76/files |
Closed by mistake |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For dev-time error messages (and for those not using build-time rewriters), it would be nice if time-consuming calculations for error messages were only performed in the event of an error. This would be easy to achieve with minimal bloat using a lambda:
The build-time rewriters will be able to strip this with no changes necessary.
Internally:
The text was updated successfully, but these errors were encountered: