3 ms·
TL;DR: (defn foo baz) does not mean the same thing as (defn (foo n) (baz n)) == (defn foo (lambda (n) (baz n))) because in the former case baz is dereferenc
by lisper 12y ago
TL;DR:
(defn foo baz)
does not mean the same thing as
(defn (foo n) (baz n)) == (defn foo (lambda (n) (baz n)))
because in the former case baz is dereferenced when foo is defined and in the latter case it's dereferenced when foo is called. So in the former case, if baz changes between when foo is defined and when it is called, you'll get surprising results.