develooper Front page | perl.moose | Postings from June 2011

Re: Moose Type Constraints violations to warnings?

Thread Previous | Thread Next
From:
Ovid
Date:
June 13, 2011 09:47
Subject:
Re: Moose Type Constraints violations to warnings?
Message ID:
191098.31453.qm@web65703.mail.ac4.yahoo.com
----- Original Message -----

> From: Dave Rolsky <autarch@urth.org>


> 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/

Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About