4 ms·
If you have a culture around a language that supports code generation (like Go) or has reflection/bytecode generation mechanisms (like Python and Java) you can
by henning 4y ago
If you have a culture around a language that supports code generation (like Go) or has reflection/bytecode generation mechanisms (like Python and Java) you can still achieve the ultimate goal of reducing tedious boilerplate code that Lisp's macros let you achieve, but it's not quite as cool as writing a macro and seeing a little bit of new syntax expand out to a bunch of generated boilerplate in a REPL, and it's not as powerful as just being able to take pretty much any AST as a parameter and returning a new one back to be evaluated.