Closed wolfsage closed 7 years ago
This just seems like good metadata to provide. Could be used to auto-build forms or other types of validations, etc...
Rik points out that this breaks scalar context;
my $validator = enum(...) will return the final hashref, not the validator.
We'd be better served by an actual type system.
This just seems like good metadata to provide. Could be used to auto-build forms or other types of validations, etc...