On Mon, May 02, 2005 at 03:53:42PM -0700, Larry Wall wrote:
: On Tue, May 03, 2005 at 12:32:58AM +0200, Juerd wrote:
: : How about
: : 
: :     &open ::= &File::open
: :     &URI::open
: :     &Sys::Pipe::open
: : 
: : And put the other aliases in the module that CGI.pm-:standard-ishly
: : pollutes the main namespace?
: I'm not too worried about polluting the main namespace, now that
: it's equivalent to Perl 5's third class keywords.  I think that Perl 6
: should end up with *more* names in the global namespace than Perl 5 had,
: as long as we don't end up with as many inconsistent names as PHP.

On the other hand, I *do* think these should live in their own packages
and be aliased into the global namespace.  Perhaps generic open could
just search a path for handlers as in the original RFC:

    use open :path<URI File>;

But in general I wouldn't mind seeing things like:

    $handle = open URI: $uri;
    $handle = Pipe.open([$prog, @args], :rw);


Reply via email to