guile-devel
[Top][All Lists]
Advanced

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

Re: [PATCH 3/3] Make `get-datum' conform more closely to R6RS semantics


From: Andy Wingo
Subject: Re: [PATCH 3/3] Make `get-datum' conform more closely to R6RS semantics
Date: Mon, 21 Jan 2013 21:48:56 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.2 (gnu/linux)

On Sun 09 Dec 2012 13:47, Andreas Rottmann <address@hidden> writes:

> With Guile's default reader options, R6RS hex escape and EOL escape
> behavior is missing.  This change enables the former via the
> `r6rs-hex-escapes' option, and gets us closer to the latter by setting
> `hungry-eol-escapes'.

I would consider exposing an optional second argument to `read', for
read options.  Probably Ludo and Mark disagree?  But I think for Scheme
the cyclomatic complexity is not that bad, as we are replacing globals
with a parameter that we pass around anyway.  I would expose
(current-reader-options) as a parameter, and have it be the default
value.  Updating the current read options would update this parameter
somehow.  Could we consider a read-enable FOO as updating the binding in
the current dynamic state only?

Maybe I'm totally wrong here :)

Andy
-- 
http://wingolog.org/



reply via email to

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