Re: Moose Type Constraints violations to warnings?

[email protected] (Ovid)
Newsgroups perl.moose
Message-ID <[email protected]>
----- Original Message -----

> From: Dave Rolsky <[email protected]>


> You can use coercions to do this, can't you? You could even warn inside the 
> coercion.

Yes, and that's pretty much the advice I've taken from this discussion (thanks to everyone who chimed in!)

http://blogs.perl.org/users/ovid/2011/06/moose-and-fatal-type-constraints.html


Cheers,
Ovid
 
--
Live and work overseas - http://overseas-exile.blogspot.com/
Buy the book - http://www.oreilly.com/catalog/perlhks/
Tech blog - http://blogs.perl.org/users/ovid/
Twitter - http://twitter.com/OvidPerl/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.