2 ms·
Because really taking advantage of it (enabling advanced compilation options) requires using a fairly specific subset of the language otherwise it will DCE half
by masklinn 11y ago
Because really taking advantage of it (enabling advanced compilation options) requires using a fairly specific subset of the language otherwise it will DCE half the project. Integration with "regular" javascript libraries can also be annoying.
ClojureScript uses Closure as an optimisation backend, since the primary cljs compiler is already in java.
- chrisoakman 11y agoFYI - I'm fairly certain that CLJS does not use Google Closure because it is "already in java", but rather because of it's maturity and awesome features like DCE. https://github.com/clojure/clojurescript/wiki/Rationale#google-leads-the-way https://github.com/clojure/clojurescript/wiki/Rationale#goog...
- masklinn 11y agoThis and that are not exclusive. There are good reasons to use closure, but would integrating closure and the tooling it requires even have been considered had the cljs compiler been in anything but java? How many alt.js languages implemented in !java use closure?