3 ms·
It's just a macro. It's pretty much exactly like a #define in C
by jonathankoren 10y ago
It's just a macro. It's pretty much exactly like a #define in C
- junke 10y agoThey only share the name.
- _ph_ 10y agoThis is pretty much wrong. C macros have a simple substitution language. But all Common Lisp macros can run arbitrary common lisp functions to compute the macro expansion. That means, you are not limited to pattern matching, but can write a program - in the same programming language you are using for your application - to compute the expansion. Of course there are simple cases which are just syntax rewrites, but there are also complex cases, like the loop macro. The loop macro allows you to specify looping constructs in an almost natural language.