-
-
Notifications
You must be signed in to change notification settings - Fork 383
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
Proposal: nice way to write ad-hoc validators #143
Comments
That looks interesting indeed! |
fixed in 37d38c4 |
My question is: why is Can someone provide an example where |
The |
Yep that's the reason. Internally they're treated the same. We could add some magic to make it optional I guess but no one bothered so far. |
Hopefully this wasn't proposed before.
If you managed to guess what this does it means the syntax is intuitive enough :)
Similar syntax familiar from
property.deleter
and friends can also be useful for other parts, but for validators it feels like a natural fit (especially with the recent change to allow multiple validators).The text was updated successfully, but these errors were encountered: