3 ms·
If there were some better known examples of what lisp macros were good for then maybe it would get better traction. But lisp macros don't seem to have an exampl
by qohen 9y ago
If there were some better known examples of what lisp macros were good for then maybe it would get better traction. But lisp macros don't seem to have an example of why they are worth that trade.
FYI, Paul Graham's book, "On Lisp" covers macros in detail and is available as a free download here, if you are interested in the topic:
http://www.paulgraham.com/onlisptext.html http://www.paulgraham.com/onlisptext.html
The book's description [0]:
On Lisp is a comprehensive study of advanced Lisp techniques, with bottom-up programming as the unifying theme. It gives the first complete description of macros and macro applications. The book also covers important subjects related to bottom-up programming, including functional programming, rapid prototyping, interactive development, and embedded languages. The final chapter takes a deeper look at object-oriented programming than previous Lisp books, showing the step-by-step construction of a working model of the Common Lisp Object System (CLOS).
As well as an indispensable reference, On Lisp is a source of software. Its examples form a library of functions and macros that readers will be able to use in their own Lisp programs.
[0] http://www.paulgraham.com/onlisp.html http://www.paulgraham.com/onlisp.html