3 ms·
> Strictly speaking, macros don't evaluate their expressions at all. OK, you are right. A better example is a bad implementation of a short circuiting or:
by gus_massa 12y ago
> Strictly speaking, macros don't evaluate their expressions at all.
OK, you are right.
A better example is a bad implementation of a short circuiting or:
(define-syntax-rule (bad-or x y)
(if x x y))
It can't be a function because sometimes you don't want to evaluate y, but in the resulting code x is sometimes executed twice.