[gambit-list] macro vs runtime environment

lowly coder lowlycoder at huoyanjinjing.com
Fri Aug 14 16:41:00 EDT 2009


> You have to think that macros is a different language than scheme that
> just conveniently happen to have a similar syntax.
>

Isn't one of the core tenents of define-macro that it's just lisp code
generating lisp code?



> I think told you yesterday, with sample code, that macros accessed
> basically two environments, and handled them differently than the
> runtime code.

You most definitely did. I don't think I quite understand it yet.

> And also, you *want* a different environment than the runtime one…

Why? If I want to avoid naming clash, I can just put them in different
namespaces.


> I *strongly* suggest you buy and read "Lisp In Small Pieces" by
> Christian Queinnec.
> All your macros questions, current and future, are answered there.
>
> P!
>
> --
> Français, English, 日本語, 한국어
>



More information about the Gambit-list mailing list