On Sat, 29 Jan 2011 09:23:45 +0200, "Octavian Rasnita" <orasn...@gmail.com> 
wrote:
> I want to use some attributes that get a default value when they are not sent 
> as constructor's parameters and also when they are sent as constructor 
> parameters but with an undef value.

Use MooseX::UndefTolerant.  The undef values will be ignored and the normal
default/builder mechanism will kick in.

A coercion is wrong, since that will be per-type, not per-attribute or
per-class.

hdp.

Reply via email to