> it is the clojure language that compiles to JavaScript, usually for running on the front end.
Being super pedantic (probably unnecessarily), it's the Clojure syntax for a subset of the Clojure language, plus some additional syntax and functionality specific to JavaScript interop.
> If you have worked on any sizeable JS code base, you have probably dealt with some of JS’s language quirks such as function context (this), hoisting, prototype inheritance, number array sorting, and the list goes on….
so clojurescript is just another language for people who don't want to bother learning javascript?
There have been a couple of comments here asking a question like this, and it makes me realize that most people don’t actually know what clojurescript is.
Clojurescript is not some kind of scripting language on top of clojure, it is the clojure language that compiles to JavaScript, usually for running on the front end.
This is a good time to mention that Clojure has ClojureScript, which is the full language hosted on JavaScript, and compiled using Google Closure (sigh about the naming confusion) advanced compilation mode, with dead code elimination and full-program optimization.
[context: I used to write in CL and used Parenscript before I switched to Clojure]
Why?
reply