in reply to Re: Moose: What about "class" attributes?
in thread Moose: What about "class" attributes?
But the idea of inheritable class attributes just make me cringeSo why does MooseX::Traits (which has your name on it) use hacks to achieve exactly that effect? The configuration of trait_namespace will inherit. If you don't like that, why not just use a simple package variable in the package of the object's original created type?
I suppose someone else maintained it and added that bit... but how would you (or how did you originally) do it, in keeping with your stated design philosophy?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Moose: What about "class" attributes?
by stvn (Monsignor) on May 01, 2011 at 12:39 UTC | |
by John M. Dlugosz (Monsignor) on May 01, 2011 at 12:59 UTC | |
by stvn (Monsignor) on May 02, 2011 at 00:56 UTC | |
by John M. Dlugosz (Monsignor) on May 02, 2011 at 03:59 UTC | |
by stvn (Monsignor) on May 03, 2011 at 01:41 UTC | |
|
In Section
Seekers of Perl Wisdom