Home > Web Front-end > JS Tutorial > Several different characteristics of TypeScript_Basic knowledge

Several different characteristics of TypeScript_Basic knowledge

WBOY
Release: 2016-05-16 16:05:16
Original
1346 people have browsed it

The topic to be discussed today is TypeScript. I have reposted an article titled "The Rise of TypeScript?" before. Today I would like to share my thoughts.

Many friends should know that TypeScript is an open source language launched by Microsoft for developing large-scale JS applications. Its author is Anders Hejlsberg, the famous father of C#. So I have continued to pay attention to it since the beginning of its beta release.

A recent incident - the Angular team plans to use TypeScript to develop the Angular 2 version, prompting TJ VanToll to raise such a question (viewpoint). And I very much agree with his point of view.

There are many languages ​​​​similar to TypeScript (more than 250 types), and they have a longer history. For example, CoffeeScript is widely used. So why will TypeScript stand out? Why now?

TypeScript has several different qualities:

1, it is optional. That is to say, it does not make you give up JS completely and jump to another completely different language. You can even change the source code file from js suffix to ts suffix, and you can start to enjoy the benefits of TypeScript.

2, compatible with ECMAScript standard. In particular, the latest version of TS aims to be fully compatible with ES6. The advantage of this is that developers using TS can use the new features of ES6 in advance and can easily migrate to ES6 in the future.

3. Excellent tool support. In addition to the world's first IDE, Visual Studio has native support for it and Eclipse plug-ins are available. WebStorm has also recently strengthened its support for TypeScript. Of course, there is no shortage of Sublime Text plug-ins available.

4, more framework support. Many frameworks use or can be implemented using TypeScript. For example, the domestic HTML5 3D game engine "White Crane", 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 analysis content of this article for you. I hope you will like it.

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template