Created
September 8, 2014 02:13
-
-
Save jamesnvc/72a54167b56691481f92 to your computer and use it in GitHub Desktop.
Testing keywords compare
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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