[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Quite sneaky bug in SRFI-9
From: |
Ludovic Courtès |
Subject: |
Re: Quite sneaky bug in SRFI-9 |
Date: |
Fri, 11 Mar 2011 21:03:40 +0100 |
User-agent: |
Gnus/5.110013 (No Gnus v0.13) Emacs/23.3 (gnu/linux) |
Hi!
Andy Wingo <address@hidden> writes:
> On Fri 11 Mar 2011 14:55, address@hidden (Ludovic Courtès) writes:
>
>> (define-syntax name
>> (lambda (x)
>> (syntax-case x ()
>> - ((_ formals ...)
>> - #'(begin body ...))
>> + ((_ args ...)
>> + #'(letify (formals ...) (args ...)
>> + (begin body ...)))
>
> Alternately:
>
> ((_ args ...)
> #'((lambda (formals ...)
> body ...)
> args ...))
>
> Guile will turn that into a let.
Nice!
I pushed this and Andreas’ test case, thank you!
Ludo’.