Why doesn't a LISP defun require a quote before its parameter argument? -
take function:
(defun sum-greater (x y z) (> (+ x y) z))
it's understanding in lisp first element in list represents function performed on subsequent atoms/lists. why doesn't lisp treat x
in (x y z)
function performed on y
, z
. not desirable behavior, expected behavior.
presumably function defines defun
somehow overrides standard lisp evaluation of list? if so, detail this?
thanks
iirc in common lisp @ least defun
macro (hyperspec), meaning may define evaluation strategy whatsoever arguments.
Comments
Post a Comment