当前位置:网站首页>Google announces dart 2 stable and dart web platform

Google announces dart 2 stable and dart web platform

2021-07-20 04:07:35 mob604756fb8908


# Scan the QR code above to sign up for Chengdu Yuanchuang Hui #

author :OSC- Director of the

source : Open source in China (oschina2013)

If you need to reprint, please indicate the source and author in the article

Beijing time. 8 month 8 Japan , Google announces Dart 2 The second stable version of , Official expression , It marks the Dart has “ be reborn ” Become mobile and mobile Web Development of the mainstream programming language . This release of Dart 2 Stable versions include rewritten Dart Web platform , It provides productivity 、 A unique combination of performance and scalability .

Download and install :


https://www.dartlang.org/install

So let's see Dart 2 What has changed .

Officially speaking, in terms of language features 、 Core library 、 Build systems and Web These aspects of development tools have changed .

Language features and core libraries


Dart The type system of is now very sound


Fixed common type problems


Flutter Destructive change of statement : Default on --preview-dart-2


Instance creation keywords are now usually optional , As described in using the constructor :


new It's always optional


const Optional in constant context


Dart No longer has check mode


Although I still support it Assertions (Assert statements), But they can only be enabled in different ways


Dart The language and the core library have changed , Part of the reason is that the type system has changed


Dev channel API Reference documents for


dart-lang/sdk CHANGELOG

Tools


Pub No longer supported transformers. A new build system has been used to replace it


And Web Development related tools have changed


New build systems replace pub build and pub serve


No longer supported Dartium, Now in use dartdevc and Chrome Instead of

About half a year ago , We have reported on Dart 2 Some of the major changes and improvements , For details, please click here :


https://www.oschina.net/news/93601/announcing-dart-2

Dart 2 The source code for :


https://github.com/dart-lang/sdk/releases/tag/2.0.0

For more release notes, please see :


https://www.dartlang.org/dart-2

For details, please check :


https://medium.com/dartlang/dart-2-stable-and-the-dart-web-platform-3775d5f8eac7

版权声明
本文为[mob604756fb8908]所创,转载请带上原文链接,感谢
https://chowdera.com/2021/05/20210530140539925F.html

随机推荐