Re: [Catalyst] use base vs use parent

2009-08-25 Thread Tomas Doran
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

Re: [Catalyst] use base vs use parent

2009-08-25 Thread Bill Moseley
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?

Re: [Catalyst] use base vs use parent

2009-08-25 Thread Evan Carroll
> > > 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

[Catalyst] use base vs use parent

2009-08-25 Thread Octavian Râşniţă
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