Re: Replacing "use base" with "use parent"

[email protected] (Jesse Luehrs)
Newsgroups perl.moose
Message-ID <[email protected]>
On Tue, Oct 09, 2012 at 06:04:32PM +0200, Olivier Mengué wrote:
> I'm Warnocked about my Moose patch.
> http://en.wikipedia.org/wiki/Warnock%27s_dilemma
> 
> 2012/9/21 Olivier Mengué <[email protected]>
> 
> > Hi,
> >
> > From the base.pm documentation<http://perldoc.perl.org/base.html#DESCRIPTION>:
> >
> >
> > Unless you are using the fields pragma, consider this module discouraged
> > in favor of the lighter-weight parent .
> >
> > From the parent.pm documentation<http://perldoc.perl.org/parent.html#HISTORY>
> > :
> >
> > This module was forked from base to remove the cruft that had accumulated
> > in it.
> >
> > parent.pm is a 30 lines pure Perl dual module available also in core
> > since 5.10.1.
> >
> >
> > So I've done the work to replace all "use base" with either "use parent"
> > or "use parent -norequire => ". Most changes are in lib/Class/ and t/.
> > The code is here:
> > https://github.com/dolmen/p5-Moose/commits/topic/base-to-parent
> > (branch topic/base-to-parent at git://github.com/dolmen/p5-Moose.git)
> >
> > I've yet not touched the 'benchmark' directory to avoid breaking reference
> > values. Tell me if I should go further...

I'm not sure I see the benefit here, at least as long as we're still
supporting 5.8. Is there a particular reason you're interested in this
change?

-doy
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.