Skip to content

Instantly share code, notes, and snippets.

@wjlroe
Created January 21, 2012 01:47
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 wjlroe/1650711 to your computer and use it in GitHub Desktop.
Save wjlroe/1650711 to your computer and use it in GitHub Desktop.
metadata how does it work?
(defn
^{:user/help-msg "Exit back to your shell"}
exit
"exit the program"
[]
(System/exit 0))
@wjlroe
Copy link
Author

wjlroe commented Jan 21, 2012

Oh I've solved that now.

To have two vars that refer to each other, you need to define one first:

(def something)

(defn another []
   (let [blah (something)]
       blah))

(defn something []
   (format "hi: %s" (meta #'another)))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment