Cedric St-Jean <[email protected]> wrote: > Local macros in Lisp are expanded at compile-time. They're useful > inside macro-expansions, eg.
Not even inside other macros, but as local macros inside any kind of
code block. E.g. (silly):
CL-USER> (let (list)
(macrolet ((add (element) `(push ,element list)))
(add 3)
(add 2)
(add 1)))
(1 2 3)
CL-USER>
--
ELS'16 registration open! http://www.european-lisp-symposium.org
Lisp, Jazz, Aïkido: http://www.didierverna.info
