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

RE: RFC: New regex modifier flags; also the whimsical nature of backward compatibility; new 'r' flag has issues

Thread Previous | Thread Next
From:
Jan Dubois
Date:
August 6, 2010 15:46
Subject:
RE: RFC: New regex modifier flags; also the whimsical nature of backward compatibility; new 'r' flag has issues
Message ID:
02ee01cb35b9$20918260$61b48720$@activestate.com
On Fri, 06 Aug 2010, David Golden wrote:
> 
> So that's my proposal:
> 
> * use "U", "L", and either "d" (for "dual"/"dumb") or "t" (for
> "text"/"traditional")
> * throw a syntax error if more than one of these appears in the list
> of modifiers
> * leave the run-on deprecation as is and make run-ons a syntax error
> in 5.16 to eliminate any future conflict issue
> 
> That's simple and fixes the problem now without messing with features,
> making assumptions about parsing ambiguous situations or introducing
> wacky dual-letter regex modifiers.
> 
> All those in favor?

+1

We could even make /u and /l aliases for /U and /L in 5.16 to return
to all lowercase modifiers if we really wanted to (e.g. for aesthetic
reasons).  But that doesn't have to be decided for quite a while...

Cheers,
-Jan


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