|
From: | Paul Eggert |
Subject: | Re: Character literals for Unicode (control) characters |
Date: | Thu, 3 Mar 2016 08:11:43 -0800 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
On 03/02/2016 09:47 PM, Lars Ingebrigtsen wrote:
Something like that would make sense. The escape sequence should bracket the name, so that the escape sequences could be used in strings without ambiguity. Something like \u[NAME], say.And then I thought -- well, if we should have a literal syntax for Unicode control characters, why not for all of them?
I'd still prefer to use characters as-is in strings if they're displayable, e.g., the Lisp string:
"Use Greek capital letters (Α–Ω) to denote figures." is more readable than:"Use Greek capital letters (\u[GREEK CAPITAL LETTER ALPHA]\u[EN DASH]\u[GREEK CAPITAL LETTER OMEGA]) to denote figures."
But for undisplayable or hard-to-read characters the escape sequence would be a win.
More issues: should we insist on the full official name? should we allow obsolescent aliases? lower-case instead of upper case? initial prefixes of names?
[Prev in Thread] | Current Thread | [Next in Thread] |