Re: Parameterized Type Intersections?
[email protected] (Kent Fredric) Fri, 2 May 2014 21:23:25 +1200
| Newsgroups | perl.moose |
|---|---|
| Message-ID | <CAATnKFCgr_KDrbAd3buwr9SMeO-HCjzETnOgGwRVGk3_qy-gEA@mail.gmail.com> |
On 2 May 2014 19:24, Thalhammer, Jeffrey Ryan <[email protected] > 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