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

Re: PATCH: [perl #58182] partial, "The Unicode Bug". Add unicodesemantics for \s, \w

Thread Previous | Thread Next
From:
Paul LeoNerd Evans
Date:
May 19, 2010 14:52
Subject:
Re: PATCH: [perl #58182] partial, "The Unicode Bug". Add unicodesemantics for \s, \w
Message ID:
20100519215150.GB11110@cel.leo
On Tue, May 11, 2010 at 12:54:01PM -0600, karl williamson wrote:
> These commits also add regex modifiers /u (unicode), /l (locale), and /t
> (traditional).  /a is not part of this patch.  I have made up the term
> "Matching mode" to describe this.  I'm open to a better term, if you can
> think of one.

It may perhaps be far too late to reconsider, but I'm not sure I like
these notations. These are three mutually-exclusive settings along one
axis, they are not three independent settings on three different axes,
such as /l vs /g.

Would it not make more sense to group them up under a single /u flag,
something of the following:

 m/Unicode on/u
 m/Unicode off/u0
 m/Unicode if locale says/ul
 m/Unicode traditionally/ut

-- 
Paul "LeoNerd" Evans

leonerd@leonerd.org.uk
ICQ# 4135350       |  Registered Linux# 179460
http://www.leonerd.org.uk/

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