Hi,
I've seen some Catalyst sample modules that use use base and some others
that use use parent.
I know that the recommendation could be to use Moose and extends..., but
if Moose is not needed, what's the difference between use parent and use
base?
When should be use parent be used and
I know that the recommendation could be to use Moose and extends..., but
if Moose is not needed, what's the difference between use parent and use
base?
per base.pm
Unless you are using the fields pragma, consider this module discouraged in
favor of the lighter-weight parent.
per
On Tue, Aug 25, 2009 at 11:55 AM, Evan Carroll li...@evancarroll.comwrote:
When should be use parent be used and not use base or it really
doesn't matter which one is used?
parent.pm when you can use cpan, base.pm when you can't.
If it's a Moose class should you always use extends over
ccing in -dev, as this is relevant there, and and contains a brain
dump :_)
If it's a Moose class should you always use extends over both?
Yep.
Hum, the CatalystAndMoose manual doesn't even show the application
base class inheriting: