develooper Front page | perl.perl5.porters | Postings from May 2016

Re: [perl #128241] Deprecate /$empty_string/

Thread Previous | Thread Next
From:
Zefram
Date:
May 27, 2016 13:19
Subject:
Re: [perl #128241] Deprecate /$empty_string/
Message ID:
20160527131945.GP16984@fysh.org
Aristotle Pagaltzis wrote:
>   I am not aware of any context where // is ambiguous as to whether it
>   means defined-or or empty match.

"int // - $z" could be parsed as either "int(// - $z)" or "int() //
(-$z)".  It actually parses as the former, but if "//" is replaced with
"||" then it parses the latter way.  So presumably if "//" ceased to be
a valid term, then it would change the parsing here, making it consistent
with "||".

-zefram

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