xslate / p5-Mouse

Lightweight class builder for Perl, as a subset of Moose
https://metacpan.org/release/Mouse
Other
46 stars 32 forks source link

Add maybe_type() from Moose::Util::TypeConstraints #3

Closed schwern closed 11 years ago

schwern commented 11 years ago

This passes Moose-t-failing/040_type_constraints/021_maybe_type_constraint.t up to line 107 where check with no args fails.

Fixing check requires messing with XS beyond my ability, and I'm not sure how to integrate a partial passing test. So I'm going to leave that up to somebody else.

gfx commented 11 years ago

Looks good. Thanks.

gfx commented 11 years ago

I'd like to fix $attr->default() but it will takes a bit time, so I release 1.03 first.