Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot

Re: Demarcate Regexes with Unicode

by DrHyde (Prior)
on Sep 20, 2011 at 10:41 UTC ( #926895=note: print w/replies, xml ) Need Help??

in reply to Demarcate Regexes with Unicode

NEVER use non-ASCII characters in your source code, not even in quoted text. Why? Several reasons:
  1. any given machine may not be configured to understand your character set;
  2. any given machine may not have an appropriate font;
  3. any given editor may not know how to handle that character set;
  4. for some characters, users may not be able to see the differences easily (this is no doubt a function of familiarity)

If you need to spit out non-ASCII characters, then they should live in a language-specific resource file. This even applies to code that is only for your own consumption where the bizarro-characters are for your own language, to protect you from the pain of editors that don't know your character set on other peoples' machines, or on mobile devices, or ...

Any use of non-ASCII characters in code is a bug, and any support for non-ASCII characters in code is also a bug because it encourages the writing of buggy code.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://926895]
[1nickt]: I think it is indubitably fast. But it's not a drop in replacement. And I tend to be leery of putting too many eggs in these one-man baskets.
[LanX]: interesting the author doesn't seem to accept javascript as a scripting language
[LanX]: ... and calls php7 the winner oO

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2017-05-22 20:35 GMT
Find Nodes?
    Voting Booth?