guile-user
[Top][All Lists]
Advanced

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

Re: srfi-88 keyword / symbol ambiguity


From: Ludovic Courtès
Subject: Re: srfi-88 keyword / symbol ambiguity
Date: Mon, 21 Jul 2008 12:04:05 +0200
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (gnu/linux)

Hi,

"Julian Graham" <address@hidden> writes:

> guile> (keyword? 'foo:)
> #t

This is expected, per SRFI-88.

> This is particularly bad because it breaks a lot of code that calls
> `use-modules' with the :prefix or :rename syntax -- from looking at some
> of the core libraries, it seems like it's pretty common to use
> rename-prefixes that end in a colon.  So, for example, the ice-9 debugger
> modules don't work after loading `(srfi srfi-88)'.

Good point.  Alas, that's hardly avoidable, given that the above
behavior is defined by SRFI-88.

One way to avoid it would be to not have a mutable global reader.  This
can be achieved using the `current-reader' fluid and something like
Guile-Reader, which produces immutable `read' procedures:

  http://www.nongnu.org/guile-reader/doc/guile-reader.html#Quick-Start

Thanks,
Ludovic.





reply via email to

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