From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Aidan Kehoe Newsgroups: gmane.emacs.devel Subject: Re: [PATCH] Unicode Lisp reader escapes Date: Sun, 30 Apr 2006 23:56:23 +0200 Message-ID: <17493.12935.604847.524198@parhasard.net> References: <17491.34779.959316.484740@parhasard.net> <17492.29148.246942.842300@parhasard.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-Trace: sea.gmane.org 1146434207 12513 80.91.229.2 (30 Apr 2006 21:56:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 30 Apr 2006 21:56:47 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Apr 30 23:56:44 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FaJuE-0007W7-Fh for ged-emacs-devel@m.gmane.org; Sun, 30 Apr 2006 23:56:42 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FaJuE-0005bk-09 for ged-emacs-devel@m.gmane.org; Sun, 30 Apr 2006 17:56:42 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FaJu3-0005bV-BV for emacs-devel@gnu.org; Sun, 30 Apr 2006 17:56:31 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FaJu0-0005ab-TA for emacs-devel@gnu.org; Sun, 30 Apr 2006 17:56:30 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FaJu0-0005aX-Kb for emacs-devel@gnu.org; Sun, 30 Apr 2006 17:56:28 -0400 Original-Received: from [66.111.49.30] (helo=icarus.asclepian.ie) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FaJxd-0003y4-7Q; Sun, 30 Apr 2006 18:00:13 -0400 Original-Received: by icarus.asclepian.ie (Postfix, from userid 1003) id C0F4B8008C; Sun, 30 Apr 2006 22:56:23 +0100 (IST) Original-To: rms@gnu.org In-Reply-To: X-Mailer: VM 7.17 under 21.5 (beta25) "eggplant" (+CVS-20060325) XEmacs Lucid X-Echelon-distraction: Rapid Reaction b KY-75 RFX number key EUB X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:53696 Archived-At: Ar an triochad=C3=BA l=C3=A1 de m=C3=AD Aibr=C3=A9an, scr=C3=ADobh Richa= rd Stallman:=20 > They are both fixed-length expressions, which is good, because peo= ple > get into the habit of typing "\u0123As I walked out one evening" > instead of the more disastrous "\u123As I walked out one evening". >=20 > 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. >=20 > 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=E2=80=99s unfamiliar to everyone, Lisp people and J= ava 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 pair= s.=20 So "\uDA6F\uDCDE" would be how one would encode U+ABCDE. But I think that= =E2=80=99s very inconvenient.=20 --=20 Aidan Kehoe, http://www.parhasard.net/