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

Re: Really auto autoloaded modules

Thread Previous | Thread Next
From:
Dan Sugalski
Date:
February 5, 2001 08:37
Subject:
Re: Really auto autoloaded modules
Message ID:
5.0.2.1.0.20010205112729.01ab3008@24.8.96.48
At 02:17 PM 2/5/2001 -0200, Branden wrote:
> > I think that, if you want this behavior, a module that implements it
> > would be just fine.  (Why muck with "use"?)  To use a module name
> > that seems like it could fit this purpose:
> >
> > use autoload { Bar => 'http://www.cpan.org/modules/Bar' },
> >              { Baz => 'ftp://my.local.domain/perl-modules/Baz', VERSION =>
>2 };
>
>Very good idea indeed!!! Append the wishlist to add this module to perl6's
>standard library!!!

Very *bad* idea. It sounds nice, but using a remote module without any sort 
of control is just begging for trouble.

This would make your average unpatched Microsoft product look impregnably 
secure by comparison, and I can guarantee you it'd be the first thing I'd 
disable when building perl.

Besides, it's more than a little inefficient, requiring a module rebuild 
every time you fetched it. Bletch. (And no, a local cache wouldn't make 
things better. Faster, yes, but arguably even less secure, if that's possible)

					Dan

--------------------------------------"it's like this"-------------------
Dan Sugalski                          even samurai
dan@sidhe.org                         have teddy bears and even
                                      teddy bears get drunk


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About