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
Paul LeoNerd Evans
May 19, 2010 14:52
Re: PATCH: [perl #58182] partial, "The Unicode Bug". Add unicodesemantics for \s, \w
Message ID:
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
ICQ# 4135350       |  Registered Linux# 179460

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