develooper Front page | perl.perl5.porters | Postings from April 2017

[perl #130497] Revert "Unescaped left brace in regex" fatality

Thread Previous | Thread Next
From:
Father Chrysostomos via RT
Date:
April 7, 2017 00:47
Subject:
[perl #130497] Revert "Unescaped left brace in regex" fatality
Message ID:
rt-4.0.24-331-1491526012-377.130497-15-0@perl.org
On Thu, 06 Apr 2017 15:55:14 -0700, public@khwilliamson.com wrote:
> I now offer a somewhat less kludgy idea.  Change the code so that at the 
> point of raising the fatal message, it first looks at the current 
> context.  If the left brace does not conflict with ideas we have as to 
> how we could use it not-literally, then don't die but instead raise the 
> warning.

Much better.

“Unescaped left brace may conflict with future pattern syntax” or suchlike.

> 
> This is more general than just the autoconf pattern, and so there are 
> many more possible patterns that we would not die on, and this would not 
> restrict our ability to make the currently foreseeable changes to left 
> brace handling.  So if there are other things besides autoconf we 
> haven't yet found, this would lessen the possibility that they would 
> cause a problem.
> 
> Besides tests and pod, the only changes needed would be to insert these 
> tests just before we currently die.
> 


-- 

Father Chrysostomos


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

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