TypeScript has several different characteristics.
The topic to be discussed today is TypeScript. I have previously reproduced an article titled The Rise of TypeScript? Let's talk about my feelings today.
Many of you should know That TypeScript is an open-source language launched by Microsoft and is used to develop large JS applications. The author is Anders Hejlsberg, the father of C. So from the beginning of its beta release, I have been paying attention to it.
One thing that happened recently-the Angular team planned to use TypeScript to develop Angular 2, prompting TJ VanToll to raise such a question (point of view ). I also agree with his opinion.
Similar to TypeScript, there are many languages (more than 250) that have a long history. For example, CoffeeScript is widely used. Why does TypeScript stand out from the crowd? Why is it now?
TypeScript has several different characteristics:
1. It is optional. That is, it does not allow you to abandon JS completely and jump to another completely different language. You can even change the source code file from the js suffix to the ts suffix to enjoy the benefits of TypeScript.
2. compatible with the ECMAScript standard. In particular, the latest version of TS is designed to be fully compatible with es6. The advantage of this is that developers can use the new features of ES6 in advance by using TS, and can easily migrate to ES6 in the future.
3. Excellent tool support. In addition to the native support of the universe's first IDE-Visual Studio, there are also Eclipse plug-ins available, WebStorm has also recently enhanced support for TypeScript, of course, there is no shortage of Sublime Text plug-ins available.
4. More frameworks are supported. Many frameworks are implemented using or using TypeScript. For example, the HTML5 3D Game Engine "White Crane" in China or Telerik's NativeScript (a cross-platform development framework for mobile apps using js) can also be developed using TypeScript.
Finally, TJ VanToll also analyzed whether TypeScript can occupy the market in the future.
The above is all the content analyzed in this article. I hope you will like it.