Skip to content

Instantly share code, notes, and snippets.

@joekarma
Created January 28, 2013 06:11
Show Gist options
  • Save joekarma/4653386 to your computer and use it in GitHub Desktop.
Save joekarma/4653386 to your computer and use it in GitHub Desktop.
(defvar *foo* (get-foo))
(defun get-foo ()
42)
(format t "~a" *foo*)
;; The above code will not work, but it's analogous to the JavaScript below, which will:
;; var foo = getFoo();
;;
;; function getFoo() {
;; return 42;
;; }
;;
;; alert(foo);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment