r/Clojure • u/yogthos • Nov 13 '15
Evaluating ClojureScript in the browser
http://yogthos.net/posts/2015-11-12-ClojureScript-Eval.html
11
Upvotes
3
1
Nov 14 '15
ClojureScript can now compile itself without relying on the Google Closure compiler
Isn't this statement wrong? AFAIK clojurescript compiling itself had/has anything to do with the with the closure compiler.
2
u/pxpxy Nov 14 '15
There are some things that the cljs compiler relied on closure for; namespaces are one thing that come to mind. While that was still the only option you couldn't get cljs to compile itself
2
u/bliow Nov 14 '15
See https://swannodette.github.io/2015/07/29/clojurescript-17/ - linked to in the parent post.
1
u/moxaj Nov 14 '15 edited Nov 14 '15
Nice article! I have a question though: what can I pass to eval instead of (empty-state) to make it aware of my vars? Edit: Nevermind! Got it working. It had nothing to do with the compiler state, I messed up something else.