4 ms·
Is there an advantage to having the macros operate on strings, instead of the AST directly like lisp/scheme?
by geon 14y ago
Is there an advantage to having the macros operate on strings, instead of the AST directly like lisp/scheme?
- akkartik 14y agoIt took me a while to understand, but it's the whole point of the article: macros that can also do their own tokenizing and parsing. That enables syntax you can't have with lisp macros (including unbalanced parens!) It's still unclear if it enables anything useful, but still a cool idea. (I have an interest in this space: http://github.com/akkartik/wart#readme http://github.com/akkartik/wart#readme)
- taejo 14y agoCommon Lisp does have reader macros, which change how code is parsed into ASTs