Why is native attribute traits defaults depr

2010-10-26 Thread Evan Carroll
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

Re: Why is native attribute traits defaults depr

2010-10-26 Thread Dave Rolsky
On Tue, 26 Oct 2010, Evan Carroll wrote: 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' } ); That's what the warning is

Re: Why is native attribute traits defaults depr

2010-10-26 Thread Evan Carroll
That's what the warning is about. You don't provide a default so the String native delegation trait provides a default for you (an empty string). This is actually a really good replace. It makes total sense and it was my inability to read and otherwise perfectly clear error that caused my