Closed HarryR closed 2 years ago
Yeah, that sounds right to me :) feel free to implement it. Thanks Harry
Feels like implementing one is easy enough, but still surprised to find it's not supported...
Did you get around to implementing this? Looks like the pampy code isn't pluggable - in that adding new features requires modifying the internals, not just adding new types. https://github.com/santinic/pampy/blob/master/pampy/pampy.py#L59
No, I'd forgotten about pampy
until now, the type matching in Rust is adequate.
Say I want to have a match for any one of the items, instead of creating two statements to match against we only need one which specifies that the value must be one within a set.
For example:
This will make some types of rules more succinct, especially with support for the Enum type.
Sounds like a good idea?