[racket] Macro expansion

From: Sam Tobin-Hochstadt (samth at ccs.neu.edu)
Date: Wed Dec 29 17:56:11 EST 2010

On Wed, Dec 29, 2010 at 5:45 PM, Markku Rontu <markku.rontu at iki.fi> wrote:
> Unless, I am perhaps able to control the expansion from the outer-macro
> and have it expand all its contents before going on with its own work.
> How would I go about with this?

The correct tool for this is `local-expand':
  http://docs.racket-lang.org/reference/stxtrans.html?q=local-expand#%28def._%28%28quote._~23~25kernel%29._local-expand%29%29

For a discussion of how to do this to implement something similar to
what you're discussing, see:
  http://www.ccs.neu.edu/scheme/pubs/scheme2007-ctf.pdf

-- 
sam th
samth at ccs.neu.edu


Posted on the users mailing list.