免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2499 | 回复: 0

Kotlin 1.2-M1 发布,1.2 系列的早期访问版 [复制链接]

论坛徽章:
1
15-16赛季CBA联赛之江苏
日期:2017-04-06 17:20:00
发表于 2017-06-28 13:53 |显示全部楼层
Kotlin 发布了 Kotlin 1.2 的早期访问版,此版本默认使用先前 1.1.x 版本的实验性功能,在标准库中也可以预览新的 API。

语言变更

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

编译器

KT-6884 KT-17910 Support default values for functional parameters in inline functions

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

KT-17929 Illegal smart cast was allowed after assignment in try block

标准库

KT-8823 MutableList.fill extension

KT-9010 MutableList.shuffle and List.shuffled extensions

KEEP-11 KT-9151 KT-10021 KT-11026
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

KEEP-49 Additional operations and conversion extensions for BigInteger and BigDecimal

KT-16447 Make kotlin.text.Regex class serializable

IDE

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

JS

Typed arrays are turned on by default

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

下载

kotlin-compiler-1.2-M1.zip

Source code (zip)

Source code (tar.gz)

转自:http://www.oschina.net/news/8624 ... -2-has-been-started

您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP