[racket] Macros as a first class objects?

From: Sam Tobin-Hochstadt (samth at ccs.neu.edu)
Date: Fri Aug 13 11:12:54 EDT 2010

On Fri, Aug 13, 2010 at 11:09 AM, Thomas Chust <chust at web.de> wrote:
>
> Which brings me to the related question whether it is actually
> possible to define syntax-transformer-of in Racket? I found no way to
> achieve this using dynamic-require or namespace-variable-value, since
> these procedures always signal errors when accessing a binding in the
> syntax phase.

Look up `syntax-local-value', which is basically the function you
want.  Unfortunately, it doesn't work for primitive transformers such
as `if', but for everything else it should do the trick.
-- 
sam th
samth at ccs.neu.edu


Posted on the users mailing list.