-
Notifications
You must be signed in to change notification settings - Fork 38
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
Property validation #275
Comments
There could be convenience functions for constructing properties with constraints like this. There's precedent for this sort of thing in property implementations from other languages. |
We'd also need to add the idea of a property Would be worth considering whether we want to provide canned property classes that represent scalars (but that's a fairly big design problem, so might be worth leaving that to a package). |
In my own use of
Incorporating any of these into |
Dear all,
I was wondering whether it would be feasible to add optional constraints to property definitions like
Ideally, this would then also be picked up by roxygen2 when documenting class properites. Might be out of scope of a OOP system, but would be kind of handy to have...
Alternatively, do you see a way of standardizing input checking like this in the validator to autogenerate documentation of the constraints?
The text was updated successfully, but these errors were encountered: