翻译于 2015/03/07 14:30
1 人 顶 此译文
The Angular team has announced a partnership with Microsoft in TypeScript that brings an end AtScript, while also attempting to alleviate community concerns about migration to Angular 2.0.
Google has addressed concerns from the community about its forthcoming Angular 2.0 release at the ng-conf.
The initial plans for Angular 2.0 were met with much scepticism from the community, with many users voicing their concerns about the absence of a migration path, the future of 1.x releases and the drastically new syntax proposed in the next release.
Angular团队宣布在TypeScript方面同微软达成合作关系,而TypeScript的引入也意味着AtScript的终结。同时,Angular团队试图平复社区对迁移至Angular 2.0的担忧。
在ng-conf大会上,Google提及了社区对即将到来的Angular 2.0的担忧。
最初针对Angular 2.0的规划遭受了社区的不少质疑,很多用户表达了他们对缺乏迁移路线的担忧,以及针对1.x分支的后续版本如何打算,还有下个版本带来的新语法变化太大。
Angular remains committed to its vision of Angular 2.0, but has added a failsafe for Angular’s innovation in 2.0. Releases in the 1.x series will remain hosted on angularjs.org, while the alpha version of Angular 2.0 is already on angular.io. This will allow Google to evaluate the community’s acceptance of Angular 2.0.
Google claims that if developers remain invested with the 1.x releases, it will work to maintain this series longer. Project lead Igor Minar told ng-conf attendees that Google would “continue releasing Angular 1 releases until the vast majority of you migrate to Angular 2.”
Angular还在被提交,它的版本是Angular 2.0,但是他们为Angular 2.0中的创新特性添加了一个故障保护。以1.x序列发布的版本还会被放在angularjs.org上,同时Angular 2.0的alpha版本在angular.io上已经准备好了。谷歌将会评估社区对Angular 2.0的接受程度。
谷歌说,如果开发者仍然在1.x的版本上持续投入,他们将会在这一序列版本上维持更长的时间。项目领导IgorMinar告诉 ng-conf的出席者,谷歌将会“持续发布Angular 1 直到绝大多数人迁移到Angular 2。”
TypeScript’s Jonathen Turner was welcomed to the stage to announce that TypeScript is taking a leaf out of AtScript’s book by adding its annotations feature to the forthcoming TypeScript 1.5 release.
Microsoft simultaneously announced that it has partnered up with Google, with whom it has been collaborating on a convergence of TypeScript and AtScript over the past months. Starting with the release of Angular 2.0, the JavaScript library will use TypeScript for development.
Angular 2’s planned introduction of the separate AtScript language was a major surprise to the community. Engineering Director Brad Green yesterday told the community “we’re happy to announce that we’re going to retire the term AtScript and we’re just going to call it TypeScript from here on out.”
受人欢迎的TypeScript的Jonathen Turner上台表示, 在即将到来的TypeScript 1.5版本中, 添加了和AtScript类似的注解特性支持.
微软同时宣布已经与Google展开了合作, 并且在过去的几个月里, 他们已经在TypeScript和AtScript方面进行了合作开发. 从Angular 2.0版本发布开始, 它将使用TypeScript进行开发.
Angular 2计划中剔除AtScript语言的介绍给社区带来了比较大的震动. 昨天技术总监Brad Green对社区说"我们很高兴的宣布将不在使用AtScript一词, 从这里开始使用TypeScrip."
However, Google’s decision to backpedal on AtScript and switch to TypeScript might also prove controversial in the community, as many Angular users have already begun discussing TypeScript as another potential “reason to move on from Angular”.
TypeScript autocomplete in Sublime 3 for Angular 2 (via blogs.msdn.com)
At the ng-conf Microsoft previewed an example of TypeScript 1.5 in Angular 2.0 with a TodoMVC example,
available on GitHub. With TypeScript 1.5, Microsoft claims to have made
writing asynchronous code “dramatically easier” with features like
async functions (async..await
).
然而,谷歌放宽撤销术语“AtScript”并用“TypeScript”替换的决定,可能也证明了社区中的争议,因为很多Angular用户已经开始议论TypeScript可能是从Angular中移除的另一个潜在原因。
在Sublime3中Augular2内的TypeScript自动补全功能(通过blogs.msdn.com)
在ng-conf会议上,微软通过一个TodoMVC例子预览了Angular2.0中的一个TypeScript1.5示例,该示例可在GitHub上获得。通过TypeScript1.5,微软声称可以利用如异步函数(async等)等特性,使编写异步代码获得“极大的方便”。
“We have worked with the Angular team to design a set of new features that will help you develop cleaner code when working with dynamic libraries like Angular 2, including a new way to annotate class declarations with metadata,” the TypeScript team announced. “Library and application developers can use these metadata annotations to cleanly separate code from information about the code, such as configuration information or conditional compilation checks.”
The upcoming TypeScript 1.5 release will also add a means of retrieving type information at runtime, which will make it possible to carry out simple type introspection. Anyone looking to get started on TypeScript can do so on the TypeScript Playground.
“我们曾与Angular团队共同设计一套新特性,包括一种使用元数据注解类声明的新方式,当使用动态链接库(如Angular2)时,这些新特性将有助于你开发更加简洁的代码,”TypeScript团队宣布说。“库文件和应用程序的开发者可以使用这些元数据注解,来将代码和有关代码的信息清晰地分开,例如配置信息或者条件编译检查。”
即将发布的TypeScript1.5还将添加一种在运行时检索类型信息的方法,这将有可能实现简单类型内省功能。任何想要开始学习TypeScript的人都可以在TypeScript Playground上开始练习。
With Angular 1.4 just around the corner, speculation about the 1.5 release has already begun. Speaking about the start of Angular at the ng-conf, Angular’s Lucas Galfaso and Pawel Koslowski said that it has become clear that the upcoming 1.5 release “will have to be a step towards Angular 2.”
Although the team didn’t announce an exact release date for 1.5, Angular’s release cycles have become increasingly shorter over the past two years, and the team are aiming for 1.5 to be released in Summer or Autumn this year.
Angular 1.4即将来临,关于 1.5版本的发布的猜测就已经开始了。在ng-conf上讨论到Angular消息,Angular的Lucas Galfaso和Pawel Koslowski说,1.5版本很明显将会很快到来,“它肯定将会朝Angular 2迈进一步”。
尽管团队没有宣布1.5版本发布的具体日期,但是Angular的发布周期在过去两年已经变得越来越快,并且团队已经锁定1.5的发布日期大约是在今年夏季或秋季。
Opening the ng-conf, Angular core team Brad Green and Igor Minar said
their would still need to be “painful breaking changes” to Angular 1.x.
Although the team has responded to concerns in the community with a
less black and white approach to migration, the team remains committed
to the drastically new syntax and semantics of Angular 2.0. During the
ng-conf, the Angular team will be introducing further
new features implemented in Angular 2, including viewports, web
components, new template syntax and unidirectional data flow.
Angular 2.0’s release date is yet to be announced. In spite of the planned release for 1.5 later in Summer/Autumn this year, Green said the first production of Angular 2.0 at Google would ship as a early as May 2015.
在 ng-conf 的会议上,Angular核心团队Brad Green 和Igor Minar说他们仍然需要对Angular 1.x做“痛苦的突破性的改变”。虽然团队已经对社区所关注的不要对迁移采用非黑即白的方法做出了回应,但是团队仍然致力于在Angular2.0中采用全新的语法和语义。在ng-conf会议期间,Angular团队将介绍Angular 2.0的新功能,包括viewports, web components, new template syntax和unidirectional data flow。
Angular 2.0的发布日期有待公布。尽管Angular 1.5的计划发布日期是在今年夏秋的后半段,Green表示在google Angular2.0第一版最早会在2015五月完成。