guile-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Preserve keyword in 'syntax-rules' and 'define-syntax-rule'


From: Ludovic Courtès
Subject: Re: [PATCH] Preserve keyword in 'syntax-rules' and 'define-syntax-rule'
Date: Thu, 11 Oct 2012 09:26:49 +0200
User-agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux)

Hi Alex,

Alex Shinn <address@hidden> skribis:

> This is not a bug.  R5RS states:
>
>      The keyword at the beginning of the pattern in a <syntax rule> is
>      not involved in the matching and is not considered a pattern
>      variable or literal identifier.
>
> R6RS forbids _ as a literal.  R7RS retains the R5RS ignoring
> of the initial keyword, adds _ as a wildcard, but allows it to be
> used as a literal.  So this code would only break in R6RS.

Interesting, thanks for the clarification.

So I guess the safest decision for Guile is to keep the current behavior.

Thanks,
Ludo’.



reply via email to

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