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

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

Thread Previous | Thread Next
Father Chrysostomos via RT
April 7, 2017 00:47
[perl #130497] Revert "Unescaped left brace in regex" fatality
Message ID:
On Thu, 06 Apr 2017 15:55:14 -0700, 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

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