develooper Front page | perl.perl5.porters | Postings from October 2013

Re: deprecate say!

Thread Previous | Thread Next
From:
Tom Christiansen
Date:
October 6, 2013 00:28
Subject:
Re: deprecate say!
Message ID:
27983.1381019301@chthon

Rafael Garcia-Suarez <rgs@consttype.org> wrote
   on Sat, 05 Oct 2013 22:12:36 +0200: 

>On 5 October 2013 22:03, Brad Gilbert <b2gills@gmail.com> wrote:
>> Why isn't `say FILEHANDLE LIST` the same as
>> `print FILEHANDLE LIST, "\n"` ?

>You mean
>{ local $\; print FILEHANDLE LIST, "\n" }
>and we're back to the initial problem.

>> or
>>
>> `print FILEHANDLE LIST, ($\ // "\n")`

>That would be an incompatible change (and a confusing semantic).

Perhaps, but it’s certainly what I always expected it to do.
I believe in perl6, it may actually do that, or its moral equivalent.

The hardcoded \n instead of $\ has always seemed like a bug to me,
a design bug or a concept bug or something like that.

--tom

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