Why is native attribute trait defaults deprecated? Is there is a
technical reason for this? So now we have to explicitly provide a u

Allowing a native trait to automatically supply a default is
deprecated. You can avoid this warning by supply a default, builder,
or making the attribute required at
/usr/local/share/perl/5.10.1/DM/Model/Vehicle.pm line 26


Line 26 doesn't even have a default (line 26 starts my stock declaration)

has 'stock'         => (
  is => 'rw'
  , isa => StockNo | Undef
  , coerce => 1
  , traits => ['String']
  , handles => { 'include_in_exports' => 'append' }
);

The next line after it does my image declaration, it has a default but
no native trait.

has 'images' => ( is => 'rw', isa => 'ArrayRef[URI]', default => sub {
[] }, auto_deref => 1 );

What's going on? Moose version 1.17

-- 
Evan Carroll - [email protected]
System Lord of the Internets
web: http://www.evancarroll.com
ph: 281.901.0011

Reply via email to