Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

This seems similar to the type checking and optimization done by Google Closure Compiler?


The 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: