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
Tom Wyant via RT
May 25, 2016 18:00
[perl #128213] No deprecation warning on literal left curly bracketin /.{/ etc
Message ID:
> 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

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About