On 2 May 2014 19:24, Thalhammer, Jeffrey Ryan <j...@imaginative-software.com > wrote:
> Does that make any sense? Is this a misappropriate use of type > constraints? Is this already supported and I’ve just overlooked it? Just trying to clarify what you're wanting: I think you're suggesting being able to do appropos of: isa => Password[ length => 6, matches => qr { }, callback => sub { } ] I know this exists, which might help in implementing that: https://metacpan.org/pod/MooseX::Meta::TypeConstraint::Intersection ( I took a stab at making a core version of that a while ago but it never landed anywhere: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=gitmo/Moose.git;a=shortlog;h=refs/heads/topic/kentnl/typeconstraint_intersection) -- Kent