红联Linux门户
Linux帮助

Kotlin 1.2-M1发布,1.2系列的早期访问版

发布时间:2017-06-28 09:16:33来源:红联作者:baihuo
Kotlin 发布了 Kotlin 1.2 的早期访问版,此版本默认使用先前 1.1.x 版本的实验性功能,在标准库中也可以预览新的 API。

完整的变更列表,点此查看

语言变更

数组文字(Array literals),可在注解参数(annotation arguments)中使用

编译器

Support default values for functional parameters in inline functions

Change the way how singleton objects are initialized in order not to contradict JVM spec

Illegal smart cast was allowed after assignment in try block

标准库

MutableList.fill extension

MutableList.shuffle and List.shuffled extensions

chunked and windowed: extension functions to support partitioning collections into blocks of the given size and taking a window of the given size and moving it along the collection with the given step.

pairwise extension to get all subsequent pairs in collection

Additional operations and conversion extensions for BigInteger and BigDecimal

Make kotlin.text.Regex class serializable

IDE

Intention to convert *arrayOf() functions to array literals in annotations

JS

Typed arrays are turned on by default

此版本还包含对于 1.1.3 版本的修复和改进。

软件详情:https://blog.jetbrains.com/kotlin/2017/06/early-access-program-for-kotlin-1-2-has-been-started/

下载地址:https://github.com/JetBrains/kotlin/releases/download/v1.2-M1/kotlin-compiler-1.2-M1.zip

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

共有 0 条评论