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:
- soft vs hard failures (errors and warnings);
- annotation of failures with paths.
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
Checkedtype 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.Checkedessentially 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.