SummarizingSuccessfulLispMacroEttiquette

Macro Ettiquette describes the science and art of using macros in Common Lisp. By “science”, I mean the technical usage and mental model of how Common Lisp macros work. By “art” I mean the principles of design that you should consider when deciding whether or not to use macros.

There are good examples in this article. I’ve always wondered when you might use a macro. The sine example was pretty convincing. It has all the runtime benefits of hardcoding a lookup table, but you can change the “coding” dynamically by changing the arguments of the macro call and recompiling.

Highlights: