[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Quite sneaky bug in SRFI-9
From: |
Andy Wingo |
Subject: |
Re: Quite sneaky bug in SRFI-9 |
Date: |
Fri, 11 Mar 2011 20:30:42 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
Hi,
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.
Andy
--
http://wingolog.org/