19:25:55orihi, I'm making my first steps with lisp, and I'm a bit confused by why/when quoting functions is required. For example, here: (apply #'+ '(1 2 3)) -- why do we need to prevent '+' from being evaluated?
19:27:19jackdanielori: because there are two namespaces in common lisp
19:27:31dash[m]in common lisp `#'` doesn't actually quote, it retrieves the function value for the symbol
19:27:33jackdanielif you had written (apply + '(1 2 3)) then apply would try to look up the function bound to +
19:30:18jackdanielthere are lisps with shared namespace for both variables and functions, most notably scheme
19:32:14sham1Yeah. in Scheme you'd write that as (apply + '(1 2 3))
19:33:43oriok, that makes sense, I think. But here's another example I'm confused about (these are from ch. 2 of Paul Graham's ANSI Common LISP): (funcall #'(lambda (x) (+ x 100))