guile-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] R6RS hex string and character escapes


From: Ludovic Courtès
Subject: Re: [PATCH] R6RS hex string and character escapes
Date: Mon, 11 Jan 2010 14:31:51 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux)

Hi Mike,

Mike Gran <address@hidden> writes:

> I've got a patch here that would allow one to "(read-enable 
> 'r6rs-hex-escapes)"
> which, when enabled, would change the character hex escape format to #\xNNN, 
> where
> NNN is a hexadecimal number of 1 to 8 digits.  It also would change the string
> hex escape format to "\xNNN;" where NNN is 1 to 8 hex digits and where there 
> is a
> terminating semicolon (!).  This is in line with R6RS.
>
> Questions? Comments?

Looks nice to me!  (I’d put the escape tests in ‘reader.test’ rather
than ‘strings.test’.)

> Also, since this isn't necessary to compile the compiler, should this sort
> of reader feature appear in the scheme code?

Since it’s not enabled by default, we’d better not rely on it in Scheme
code.  But code that really needs it just needs the appropriate
‘eval-when’ boilerplate.

Thanks,
Ludo’.





reply via email to

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