![]() |
|
P is for Practical | |
PerlMonks |
Re^6: Sanity Check: Roles vs. Traitsby jplindstrom (Monsignor) |
on Oct 31, 2008 at 17:07 UTC ( #720738=note: print w/replies, xml ) | Need Help?? |
perhaps your already existing role was incorrectly named. That's probably true. I think maybe the role was applied at the wrong level. It should have been applied to the new base class I was trying to name. I've been meaning to ask for a while now: Are there any guidelines on how to name roles? Like for inheritance there's the "is a", e.g. Broadcast is a PublicationEvent. The PublicationEvent does HaveIdentifiers. I think the "does" comes from the Perl6 keyword. But in Moose the keyword is "with", so that confuses things a bit. So, any good ideas on how to think or phrase the description of names for classes and roles?
In Section
Seekers of Perl Wisdom
|
|