develooper Front page | perl.perl5.porters | Postings from August 2010

Re: RFC: New regex modifier flags

Thread Previous | Thread Next
From:
Jesse Vincent
Date:
August 4, 2010 08:03
Subject:
Re: RFC: New regex modifier flags
Message ID:
20100804150343.GA12796@puppy
Karl,
 
We've been discussing one possible solution to the modifier vs previously 
allowed keywords problem on #p5p this morning:

* If the user declares "use 5.14"[1] for the current lexical scope, then the modifiers previously allowed without spaces would become syntax errors.

* If the user declares "use 5.14" for the current lexical scope, then
  they get the new regex modifiers without any crazy required syntax.

* If the user doesn't declare "use 5.14", then they get the bad, old
  behavior that we all agree is a flaw, but that people are invariably
  depending on in old code.

Would that work for you?

    -Jesse


[1] or some to-be-named use feature '...' pragma.

    -Jesse

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