guile-devel
[Top][All Lists]
Advanced

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

Re: syntax-local-value patch for discussion


From: Andy Wingo
Subject: Re: syntax-local-value patch for discussion
Date: Sat, 07 Jan 2012 01:05:29 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (gnu/linux)

On Mon 05 Dec 2011 19:12, Stefan Israelsson Tampe <address@hidden> writes:

> (define-syntax info
>   (lambda (x)
>     (syntax-case x ()
>       ((_ x)
>         (pk (syntax-binding-info (syntax->datum #'x)))
>         #'#f))))

I agree with Ian that we should be operating on syntax objects here, not
on datums.  Also, what should the type of the return value be?  Racket
implies that it should be a procedure, no?

> and calling this in an example lead to
> (let-syntax ((a (lambda (x) #'#f)))
>       (info a))

Does it work on toplevel macros as well?

Regards,

Andy
-- 
http://wingolog.org/



reply via email to

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