Email list hosting service & mailing list manager

pretty-print and ~C Alex Shinn (22 Dec 2003 04:11 UTC)
Re: pretty-print and ~C Ken Dickey (22 Dec 2003 16:26 UTC)
Re: pretty-print and ~C Ken Dickey (23 Dec 2003 00:03 UTC)
Re: pretty-print and ~C Alex Shinn (23 Dec 2003 04:21 UTC)

Re: pretty-print and ~C Alex Shinn 23 Dec 2003 04:21 UTC

On Mon, Dec 22, 2003 at 04:05:07PM +0100, Ken Dickey wrote:

> CL DISPLAY's the character as well.  From the CL Hyperspec:
>
>  (format nil "~C" #\A) =>  "A"
>  (format nil "~C" #\Space) =>  " "

My mistake, I was thinking of the ~:C behavior and confused by the
fact that GCL spells out the name by default, contrary to the
hyperspec.  In GCL 2.6.1:

  (format nil "~C" #\Newline) => "Newline"

However this is one situation where I would disagree with Common-Lisp
- ~C acts exactly as ~A in this case and thus has no use.  I doubt
future Schemes will implement CL buckey-bit characters (they are a
hack and not i18n friendly), so the only extra feature ~C provides
would be the character names with the : modifier.  For this SRFI it
may be better to drop it altogether.

--
Alex