On Fri, May 2, 2014 at 12:24 AM, Thalhammer, Jeffrey Ryan < [email protected]> wrote:
> I feel that I want to construct type constraints that can take arbitrary > arguments. And I want to create type constraints by combining several other > constraints that must all be satisfied (maybe this is a type intersection > instead of a union). I have looked at MooseX::Types::Structured and > Types::Tiny, but from my initial read of the documentation they didn’t seem > to be what I want. >From your description I'm not entirely sure it's on point, but you may be interested in some of the constraint shortcuts available in MooseX::AttributeShortcuts. They're handy for one-offs, with all the usual caveats about what one can do with lots of rope and getting to keep all the pieces. https://metacpan.org/pod/MooseX::AttributeShortcuts#isa-...-constraint-sub -Chris -- Chris Weyl Ex astris scientia
