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:
http://search.cpan.org/~hkclark/Catalyst-Manual-5.8
On Tue, Aug 25, 2009 at 11:55 AM, Evan Carroll wrote:
>
>
>> 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 both?
>
>
> 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
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 use