Quantcast
Channel: Random Hacks
Viewing all articles
Browse latest Browse all 22

"Why Hygienic Macros Rock" by Scott

$
0
0

To what extent can hygienic macros be implemented in non- and vice versa? I’m more familiar with Emacs Lisp-style macros than CL or Scheme macros, but it seems like the hygiene involves automatically writing code with gensyms to avoid variable capture and other compile-time analysis. If one is implemented in terms of the other, it would probably make the most sense to have two different forms, e.g. hmacro for declaring hygienic macros, and macro for when you deliberately want to do things like variable capture.


Viewing all articles
Browse latest Browse all 22

Trending Articles