Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Bottom-Up vs Top-Down Macroexpansion

Name: Anonymous 2014-06-20 6:51

What if we macroexpand depth-first? Don't you think that macros get more powerful?

Name: Anonymous 2014-06-23 21:38

Top down is more powerful. In the outer macro you can do whatever traversal you like into the nested code. Even calling macroexpand on it, and then changing it after that. So you can implement bottom up macros if you want to.

>>9
That's a nice idea but it's hard to make sense of for vanilla lisp which doesn't enforce static types. You can write a function that takes source of some language in sexp form as an input and outputs a registry of variables tied to scopes with static type information.

>>12
Racket a shit.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List