-
Notifications
You must be signed in to change notification settings - Fork 11
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
Allow the user to customise the Checked type? #2
Comments
A relevant extract from a recent email conversation with @ashleymercer:
This is one reason to allow people to customise the error types. As long as we support soft and hard errors, we have all of the basic semantics we need for this. Log levels like "debug" and "info" are variants on soft errors; levels like "error" and "fatal" are hard errors. My first thought is to experiment creating a Cross-referencing this with issue #3, the |
I spent a little time on an alternative encoding of In this codebase, the I've reimplemented the original semantics of Checklist in the |
The
Checked
type is restrictive. It doesn't allow the user to add their own data to error messages. We could consider generalising it to allow more customisation.Checked
essentially encompass two concepts:We could potentially extract these out into type classes to allow developers to customise the error type. We may need to parameterise the entire rule-definition API by the error type to keep things simple.
The text was updated successfully, but these errors were encountered: