Macros in Lisp
Built-in macros such as SETF can be used like special forms.
(setf pair (cons 'banana 'split))
(BANANA . SPLIT)
(setf (rest pair) 'republic)
(BANANA . REPUBLIC)
A macro can do many things that functions can do, plus more.
Next slide
Back to first slide
View graphic version