emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] Unicode Lisp reader escapes


From: Aidan Kehoe
Subject: Re: [PATCH] Unicode Lisp reader escapes
Date: Sun, 30 Apr 2006 23:56:23 +0200

 Ar an triochadú lá de mí Aibréan, scríobh Richard Stallman: 

 >     They are both fixed-length expressions, which is good, because people
 >     get into the habit of typing "\u0123As I walked out one evening"
 >     instead of the more disastrous "\u123As I walked out one evening".
 > 
 > I see, you are talking about using them in strings.

Indeed, as I mentioned in the documentation.

 > Still, I don't like having both \u and \U--it is ugly.
 > 
 > I think it would be better to put an explicit terminator into
 > the construct.  Perhaps #.  So you would write "\u123#As I walked"

I find _that_ distinctly ugly, but more of a problem with it than the
aesthetics is that it’s unfamiliar to everyone, Lisp people and Java people
alike.

Another alternative to providing both \u and \U is to do what Java does;
only allow \u, and require code points above #xFFFF to use surrogate pairs. 
So "\uDA6F\uDCDE" would be how one would encode U+ABCDE. But I think that’s
very inconvenient. 

-- 
Aidan Kehoe, http://www.parhasard.net/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]