Meta Best Practices Questions

[email protected] ("Christopher Brown")
Newsgroups perl.moose
Message-ID <[email protected]>
What is the best practice for creating a class that exports some sugar and
extends the metaclass?  I generally like to use Traits/Rolls to extend the
metaclass, but I noticed the following comment in *
Moose::Cookbook::Meta::Recipe5:

*The disadvantage is that it's not easy to combine a trait with some sort of
sugar (like our notional has_table sugar).

Am I to infer this correctly, that it recommended that if you wish to extend
the metaclass and add sugar.   You should follow *
Moose::Cookbook::Meta::Recipe4* and:

extends 'Moose::Meta::Class';

Rather than use traits?

Thanks in Advance,

Chris
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.