4 ms·
> Lisps use Macros IF is a built-in special operator in Common Lisp. COND is a macro, which expands into IF forms. > (if (> x 1) '(print 'larger)) Stuff like
by _19qg 2y ago
> Lisps use Macros
IF is a built-in special operator in Common Lisp. COND is a macro, which expands into IF forms.
> (if (> x 1) '(print 'larger))
Stuff like this would not really work Common Lisp for the following code example:
(let ((x 1))
(if (> x 1)
'(print x)))
The evaluator would not know that the X in the print form refers to the lexically bound X from the LET form.