Macro Recursion is not like Function Recursion
(defmacro nth* (n list)
`(if (= ,n 0) (car ,list)
(nth* (- ,n 1) (cdr ,list))))
It is an error to macroexpand nth* because it will macroexpand forever
N is not defined until runtime
Previous slide
Next slide
Back to first slide
View graphic version