Tom Christiansen wrote:
>
> >Eliminate bareword filehandles.
> 
> "Eliminate" is such a strong word.  You're saying that we can't
> use STDIN, STDOUT, STDERR, ARGV, or DATA anymore?  Heck, some people
> still use stdin and stdout! :-)

Disclaimer: I am not attempting to put words in anyone's mouth.

Tom, I'm confused. A while back, we had a similar discussion and you
seemed all for this idea. You yourself drove home the idea that
filehandles should be scalars, in this email right here:

http://www.mail-archive.com/perl6-language@perl.org/msg00332.html

Have you changed your mind?

> What I tell
> people is that if they want, they can just pretend, even though
> it's not quite true, that * is the type symbol for a filehandle

That's exactly the notion that we're trying to eliminate. If a
filehandle can *finally* be $FILE, a first-class scalar, then why would
we want to promote trickery to get it to look like FILE?

Some things are bound to break if we make Perl 6 markedly better, and I
think this is one that deserves to break. Extensive discussion on this
topic on the -io sublist has occurred and we all seem to be in
agreement. I'm not claiming any issue is closed, but this one almost
appears to be a "no-brainer", considering 5.6 already supports this:

   open my $FILE, "< $file";

-Nate

Reply via email to