Questions tagged [sharp-quote]

2 questions
22
votes
4 answers

Why sharp quote lambda expressions?

It is a technique used frequently in On Lisp, which is on Common Lisp: > (mapcar #'(lambda (x) (+ x 10)) '(1 2 3)) (11 12 13) Why is sharp-quote needed or even possible? lambda expressions return function objects, and sharp quoting returns…
djechlin
  • 59,258
  • 35
  • 162
  • 290
1
vote
2 answers

How is sharp quote (#') different from symbol-function?

To me these operators seem to do the same thing. Both take a symbol and return the function associated with it. Is there any difference? elisp evaluation returns the following: (defun foo (x) (+ 1 x)) foo (foo 3) 4 #'foo Which I don't…
djechlin
  • 59,258
  • 35
  • 162
  • 290