4 ms·
This seems similar to the type checking and optimization done by Google Closure Compiler?
by streptomycin 14y ago
This seems similar to the type checking and optimization done by Google Closure Compiler?
- polarix 14y agoThe main difference is that the Closure compiler compiles JS->JS, keeping all the type info in jsdoc comments. Typescript makes the typing a first class language entity, which reduces code portability (and toolchain flexibility) in favor of (I assume) readability and maintainabilty. Another huge advantage is that the typescript parser & compiler is written in Javascript. Closure's jscomp is Java, which decreases backend portability somewhat.
- deleted 14y ago[deleted]