Skip to content

Instantly share code, notes, and snippets.

@gabriel-laddel
Last active December 11, 2015 19:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabriel-laddel/4651584 to your computer and use it in GitHub Desktop.
Save gabriel-laddel/4651584 to your computer and use it in GitHub Desktop.
Difference between lisp-1 and lisp-2
;; lisp-1
(define x "foo")
(define x (lambda () "bar"))
(eval (x)) => "bar"
;; lisp-2
(define x "foo")
(define x (function () "bar"))
(eval x) => "foo"
(funcall #'x) => "bar"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment