Louis :emacs: on Nostr: TIL: Function designators in Common Lisp: (funcall 'foo 0) (funcall #'foo 0) Both ...
TIL: Function designators in Common Lisp:
(funcall 'foo 0)
(funcall #'foo 0)
Both work, however, if there is a function named FOO in the lexical environment (i.e. via FLET/LABELS), #' (= FUNCTION) will use that while ' (= QUOTE) will always ignore the lexical environment.
#commonlisp
(funcall 'foo 0)
(funcall #'foo 0)
Both work, however, if there is a function named FOO in the lexical environment (i.e. via FLET/LABELS), #' (= FUNCTION) will use that while ' (= QUOTE) will always ignore the lexical environment.
#commonlisp