3 ms·
Only allow ones that are hygienic. Maybe also have a tool like DrRacket which will show you stage by stage what macros expand to (including features like not ex
by slaymaker1907 4y ago
Only allow ones that are hygienic. Maybe also have a tool like DrRacket which will show you stage by stage what macros expand to (including features like not expanding common ones like "define" in Racket or "println!" in Rust). I think the latter in particular is important since debugging what code you're generating is very important.
- donio 4y agoFor Emacs Lisp users M-x macrostep-expand from the macrostep package is a cool tool that allows for inline expansion/collapse of macros, step by step if there are multiple levels of macros. There is also M-x pp-macroexpand-last-sexp that comes with Emacs. And the macroexpand function itself of course.
- zelphirkalt 4y agoDoes Elisp have hygienic macros (without things like gensym)?