guile-user
[Top][All Lists]
Advanced

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

Re: reading symbols containing apostrophe


From: Taylan Kammer
Subject: Re: reading symbols containing apostrophe
Date: Wed, 30 Dec 2020 14:02:21 +0100
User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:78.0) Gecko/20100101 Thunderbird/78.6.0

On 30.12.2020 05:51, Tom Gillespie wrote:
Hi,
    I'm in the processes of reviewing reader behavior for a number of
different lisp dialects and Guile has a quirk that I have been unable
to find any documentation about. Specifically, as far as I can tell
apostrophe is not allowed in identifiers according to the formal
grammars for r5rs through r7rs (I have not checked earlier versions).
In addition apostrophe is not included in the extended reader syntax
in the manual. However, 'a'b'c reads as a'b'c in guile 2.2.6. Am I
missing something? Is this a bug?

Hi Tom,

It's quite common for implementations to extend the standard, so something that's "an error" in the standard might be allowed in an implementation.

This is evidently one of those cases.

I would not *rely* on Guile supporting this either though. Maybe in a future version the reader will be changed and it will stop working.


- Taylan




reply via email to

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