What Template Haskell gets wrong and Racket gets right
FYI, Racket's syntax macros is from its Scheme roots. For further information on what Scheme provides, by standard revision:R5RS: [0]R6RS: [1]R7RS: [2] (Page 22)And many Schemes provide non-standard extensions; for instance, Chicken supports non-hygienic macros[3].FWIW, I prefer to think of the two stages as "syntax expansion" and "evaluation", and not "compile time" and "run time". Compilation and running are loaded terms that don't appropriately capture the totality of situations where this behaviour applies, in Scheme.0: http://schemers.org/Documents/Standards/R5RS/HTML/r5rs-Z-H-8...1: http://www.r6rs.org/final/html/r6rs/r6rs-Z-H-14.html#node_se...2: http://trac.sacrideo.us/wg/raw-attachment/wiki/WikiStart/r7r...3: http://wiki.call-cc.org/explicit-renaming-macros