Should I use Traceur instead of Typescript to target ES5 but be ready for ES6

前端 未结 6 1892
南笙
南笙 2021-02-01 06:41

I\'m working on a large code base that could benefit from Typescript, but since eventually the world will be moving to ES6, should I steer the development towards Traceur?

6条回答
  •  [愿得一人]
    2021-02-01 07:14

    FYI the next version (2.0) of typescript in development is focused on ES6 compatibility : http://typescript.codeplex.com/wikipage?title=Roadmap

    Updated post here:

    http://blogs.msdn.com/b/typescript/archive/2014/10/22/typescript-and-the-road-to-2-0.aspx

    From TypeScript 1.5 to TypeScript 2.0

    As we look to the 2.0 release, we 're focusing on two goals in addition to our main goal of bringing good tooling to JavaScript development. The first is to align with ES6. Aligning with ES6 allows TypeScript to become a superset of the next JavaScript, opening the way for working with new code patterns like destructuring, string templates, promises, iterators and more in addition to features TypeScript already supports, such as classes and lambda functions. We're also working with the Flow and Angular teams to make sure that TypeScript is the best language for working with a broader range of libraries, including declarative frameworks like the upcoming Angular 2.0 release.

提交回复
热议问题