Linked by Thom Holwerda on Mon 1st Oct 2012 22:55 UTC
General Development "Everyone seems to have a replacement for JavaScript - Google even has two. Now Microsoft has revealed that Anders Hejlsberg has been working on a replacement and it has released a preview of TypeScript. TypeScript is open source - Apache 2.0 license - and a superset of JavaScript. As you would expect from a Hejlsberg language it incorporates type checking, interfaces and lots of syntactic sugar."
Permalink for comment 537234
To read all comments associated with this story, please click here.
Member since:

TypeScript is a superset of javascript (just like c++ is a superset of c), with means, that Javascript is 100% compatible with TypeScript

Except C++ is not a strict superset of C, which means that C is not 100% compatible with C++. I.e. there are C programs which either are not C++ programs, or have a different meaning in C++.
I hope TypeScript does a better job at being a superset. But then, if you're 100% compatible with JS you get all the crazy stuff like this:

Reply Parent Score: 3