3 ms·
I always thought it would be cool if CoffeeScript's generated JS code added Closure Compiler annotations, such as @const and @param types. Let the user minify/o
by cpeterso 16y ago
I always thought it would be cool if CoffeeScript's generated JS code added Closure Compiler annotations, such as @const and @param types. Let the user minify/optimize the generated JS using their favorite tools.
https://code.google.com/closure/compiler/docs/js-for-compiler.html https://code.google.com/closure/compiler/docs/js-for-compile...
- rudiger 16y agoAutomatically annotating JavaScript code for JSDoc would really helpful.
- munificent 16y agoThis fork of CoffeeScript does: https://github.com/jstrachan/coffee-script/blob/master/TypeAnnotations.md https://github.com/jstrachan/coffee-script/blob/master/TypeA.... I for one would also love it if this got rolled into mainline. I use Closure at work, and I'd love to be using CoffeeScript with it.
- cpeterso 16y agoThanks! I hadn't seen this "UberScript" before, though I was kinda hoping the Closure annotations could be inferred "for free" without changes to the CoffeeScript language. <:)