Re: (apply #'and '(t t nil)) not work



fishmacs wrote:
I wrote a macro(very silly):
(defmacro andl (lst)
`(and ,@lst))
if type (andl '(1)) in the REPL, I get the error:
EVAL: variable QUOTE has no value
The variable lst in the macro is bound to (quote (1)), not (1), in
that example.

If you plan on applying something short circuiting to a list of
values, the evaluation has already been done (in the creation of the
list), so the short circuiting nature isn't going to buy you anything.
.