develooper Front page | perl.perl6.language | Postings from December 2001

Re: Perl 6's Exporter

Thread Previous | Thread Next
Michael G Schwern
December 24, 2001 08:15
Re: Perl 6's Exporter
Message ID:
On Mon, Dec 24, 2001 at 01:11:21PM +0000, Nicholas Clark wrote:
> > > 4. For modules, saying 'use Exporter' should be enough to get import.
> > >    If you don't want Exporter's import(), just C<use Exporter()>.
> > 
> > Very nice.  Exporter::Lite does just that.
> What actually stops us retrofitting that onto perl5's exporter?

If we did everyone would still say "@ISA = qw(Exporter)" to be
backwards compatible, so I don't know what the benefits would be.

Also it would cause "subroutine redefined" warnings in this sort of

    use Exporter;
    sub import {


Michael G. Schwern   <>
Perl Quality Assurance	    <>	       Kwalitee Is Job One
Plus I remember being impressed with Ada because you could write an
infinite loop without a faked up condition.  The idea being that in Ada
the typical infinite loop would be normally be terminated by detonation.
	-- Larry Wall in <>

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About