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

[perl #128213] No deprecation warning on literal left curly bracketin /.{/ etc

Thread Previous | Thread Next
From:
Tom Wyant via RT
Date:
May 25, 2016 18:00
Subject:
[perl #128213] No deprecation warning on literal left curly bracketin /.{/ etc
Message ID:
rt-4.0.18-10379-1464199219-1940.128213-15-0@perl.org
> 
> I think that 5.26 should go out with the current fatal error for the
> contexts where we previously warned, and 5.28 is free to re-purpose
> the
> '{' uses in these contexts.
> 
> And, I want to make the rule simple to follow.  I think it's better to
> simply say that unescaped literal '{' uses are deprecated, and then
> add
> a caveat that this is enforced only where there is ambiguity of
> intent.
>  The current text can be improved in that regard.
> 

The thing is, the more I think about it, the more I think the simple-to-follow argument says un-escaped literal '{' should not become fatal until _all_ cases of interest can be made fatal. Doing it in two (currently) stages means, at least, explaining to people that they are allowed (with a warning) to write /^{/, but /\A{/ is fatal -- and the same for however many other cases there are.

Or have I misunderstood?

---
via perlbug:  queue: perl5 status: open
https://rt.perl.org/Ticket/Display.html?id=128213

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