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

Re: [perl #128213] No deprecation warning on literal left curlybracket in /.{/ etc

Thread Previous | Thread Next
From:
Zefram
Date:
May 23, 2016 23:08
Subject:
Re: [perl #128213] No deprecation warning on literal left curlybracket in /.{/ etc
Message ID:
20160523230836.GA16984@fysh.org
Karl Williamson wrote:
>And, I want to make the rule simple to follow.

In that case, *every* unescaped brace should be subject to the
deprecation.  /^*/ and /^{3}/ both parse as a quantifier on /^/, so /^{/
should be deprecated as looking like an incomplete quantifier, just like
/.{/.  /*/ and /{3}/ error as "quantifier follows nothing", so /{/ should
be deprecated as looking like an incomplete quantifier following nothing.

-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