Closed MysteryMachine closed 8 years ago
The thing about macro writing is that if the macro itself is big and complicated, you're probably doing it wrong. Often, good macros get broken down into syntax sugar for more interesting functionality.
That said, maybe one of these:
defmessage
(which is like defgeneric
), and defproto
(which is kinda like defclass
) -- you can see how small the macros themselves are, and how they call a bunch of different functions to generate what they need to.make-actor-function
from my failed attempt at writing Erlang's OTP into Common Lisp :)select
from my original version into this fascinating monstrosity ;)
Whenever a LISP programmer gets to write a non-trivial macro, it is a damn good day for them. What is the coolest thing you've used a macro to do?