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: Wed, 10 Oct 2012 22:41:03 +0200
User-agent: Gnus/5.130005 (Ma Gnus v0.5) Emacs/24.2 (gnu/linux)

Hi,

Mark H Weaver <address@hidden> skribis:

> Unfortunately, preserving the macro keyword breaks one of Oleg
> Kiselyov's macros, namely 'ppat' in system/base/pmatch.scm:

[...]

> Oleg's macro uses '_' in the keyword position of the pattern, even
> though '_' is in the literals list.  Therefore, it fails to match
> because 'ppat' does not match that literal.

I would call it a bug in ‘ppat’.  However, the real question is how
frequent that “bug” is.  If people have come to rely on the current
behavior, then it may be more reasonable to stick to it.

> Among other things,

What were the other things?  :-)

Ludo’.




reply via email to

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