On Apr 19, 2010, at 9:01 PM, Montgomery Conner wrote:
Can anyone offer some insight into how something like this
might be implemented?
Honestly, I would use an embedded object instead of a compound data
structure.
If chaining M::M::A::N handlers isn't natively possible, does anyone
have a
suggestion for a better way to implement the functionality I'm
describing?
Since a Trait is a Role under-the-covers (or so I've read) would I
be able
to simply implement a new Role to handle a "compound-trait", then just
declare e.g. "traits => [ 'HashofArray' ]" and implement attribute-
specific
aliases in this attribute to my new Role's methods?
Yes, you could implement a HashofArray trait, but it would take more
work then just making an embedded object and will be harder to
understand for the next person who encounters your code.
- Stevan