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:
demerphq
Date:
May 24, 2016 23:44
Subject:
Re: [perl #128213] No deprecation warning on literal left curlybracket in /.{/ etc
Message ID:
CANgJU+WNbKZijUCHjcx-TNnjziDRLDHA=B5irrju4r18ZDGnoQ@mail.gmail.com
On 25 May 2016 at 01:36, Zefram <zefram@fysh.org> wrote:
> demerphq wrote:
>>Yes, no argument there. My point was more that IMO it would not be
>>particularly unreasonable to forbid certain quantifiers on an
>>assertion.
>
> I'd be OK with syntactically forbidding quantifiers on assertions.
> It'd really have to be *all* quantifiers; anything selective is more
> complexity than it's worth.  And it would have to be strictly syntactic,
> such that one can get around the restriction by wrapping the assertion in
> (?:).

Umm. I dont follow that last point...

I can understand forbidding quantifiers on an assertion, but not
allowing it if its wrapped.

Why do you think we need to support that?

Yves

-- 
perl -Mre=debug -e "/just|another|perl|hacker/"

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