3 ms·
I'd also recommend people interested in the Google Closure Library to try out ClojureScript. All ClojureScript code and libraries are automatically compatible w
by didibus 10y ago
I'd also recommend people interested in the Google Closure Library to try out ClojureScript. All ClojureScript code and libraries are automatically compatible with Google's Closure compiler advanced compilation.
It supports working with JavaScript libraries who are also compatible, or at the sacrifice of less optimizations, it lets you work with non compatible JavaScript libraries also.
For example for Angular, you just need to specify an extern file. It will still optimize parts of it, but it won't do symbol renaming. (Disclaimer, I've never actually tried to use Angular with CLJS, but I believe this is true)
For libraries which are completly non compatible, you can import them as foreign libraries and they'll just bypass the advanced compilation, but all your CLJS code and everything else which can be optimized will.
Here's a template to get you started with Angular2 and CLJS https://github.com/steveshogren/angular2-cljs https://github.com/steveshogren/angular2-cljs