Skip to content

Instantly share code, notes, and snippets.

@jamesnvc
Created September 8, 2014 02:13
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 jamesnvc/72a54167b56691481f92 to your computer and use it in GitHub Desktop.
Save jamesnvc/72a54167b56691481f92 to your computer and use it in GitHub Desktop.
Testing keywords compare
(import '(javax.script ScriptEngineManager))
(defn eval-js
[js]
(let [engine (.getEngineByName (ScriptEngineManager. ) "nashorn")]
(.eval engine js)))
(require '[cljs.closure :as cljsc])
(eval-js
(cljsc/build
'[(ns aoeu.core)
(str "keywords equal? " (= :foobar (keyword "foobar")))]
{:optimizations :advanced}))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment