红联Linux门户
Linux帮助

Dart 1.8发布,支持枚举

发布时间:2014-11-29 08:56:28来源:红联作者:empast
Dart 1.8 发布,此版本是个稳定版本,提供在 Stable 频道,主要包括库改进和尝试性支持枚举。

在 Dart Editor 的 Tools > Preferences > Experimental 下面,你可以看到“Enable Enums Support”,然后就可以开始体验 Dart 的枚举。

Dart 1.8 还包括了大量的库改进:

dart:collection 中,SplayTree 添加了 toSet() 方法,在 dart:convert 中添加了一个 JsonUtf8Encoder 类

dart:core 添加了下面三个特性:

New properties and constructors for RangeError

A new IndexError class - used by the RangeError.index constructor

Optional start and end arguments for the String.fromCharCodes constructor.

dart:io 支持客户端和服务器端 TLS 安全网络协议的 ALPN 扩展

更多更新内容请看发行说明。此版本现已提供下载。

软件详情:https://groups.google.com/a/dartlang.org/forum/#%21topic/announce/OBhiFkSv28o

下载地址:https://www.dartlang.org/tools/download.html

来自:开源中国社区
文章评论

共有 0 条评论