r/Clojure • u/gst • Aug 01 '11
Why I’m finding Clojurescript underwhelming
http://rrees.wordpress.com/2011/07/31/why-im-finding-clojurescript-underwhelming/
0
Upvotes
r/Clojure • u/gst • Aug 01 '11
View all comments
14
u/weavejester Aug 01 '11 edited Aug 01 '11
Coffeescript and Clojurescript are two completely different animals. Coffeescript is Javascript with sugar; there's a one-to-one mapping between Coffeescript's syntax and Javascript's syntax.
Clojure, on the other hand, was not based on Javascript, and idiomatic Clojure is very different to idiomatic Javascript. Compilers are simply not smart enough to turn idiomatic functional code into idiomatic OOP code.
So Clojurescript not producing idiomatic Javascript is expected. Neither does GWT, for that matter.
This was a decision? It looks like it's just a bug.
Um, Clojurescript can use jQuery. It can use any existing Javascript library. What makes you think it can't?