Skip to content

Instantly share code, notes, and snippets.

Created October 1, 2013 21:02
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 anonymous/6785059 to your computer and use it in GitHub Desktop.
Save anonymous/6785059 to your computer and use it in GitHub Desktop.
Having trouble....
;; ns1.clj
(ns tests.ns1
(:use tests.ns2))
(defn -main []
(println (conc '((bang "foo") (bang "bar"))))
(println (conc2 '((bang "foo") (bang "bar")))))
;; ns2.clj
(ns tests.ns2)
(defn bang [s]
(str s "!"))
(defn conc [strings]
(str (doall strings)))
(defn conc2 [strings]
(str (doall (map eval strings))))
;; Output
((bang "foo") (bang "bar"))
Exception in thread "main" java.lang.RuntimeException: Unable to resolve symbol: bang in this context
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment