Kotlin 1.0.4 发布,基于 JVM 的编程语言

来源:开源中国社区 作者:达尔文
  

Kotlin 1.0.4 发布了。Kotlin 是一个基于 JVM 的新的编程语言,由 JetBrains 开发。

主要改进内容:

编译器:

  • Better type inference for callable expressions

  • More efficient bytecode for several cases of when and for expressions

  • Better parser recovery after syntax errors

  • Fixed several cases when “Cast never succeeds” warning was incorrectly reported 

构建工具:

  • Full compatibility with Gradle 2.14 and later.

  • Gradle incremental compilation can now track changes between subprojects.

  • CLI and Ant builds add the Kotlin reflection library to the classpath by default; use the no-reflect switch to disable. 

IDE 新特性:

  • You now have the option to use Kotlin syntax when evaluating expressions and watches in Java files

  • New inspection to detect “leaking this” – possible NullPointerException issues caused by access to incompletely initialized data.

  • Intention to convert a lambda to a function reference

  • Inspection to detect mismatches between Gradle version and Kotlin plugin version

  • Many other new intentions, inspections and quickfixes 

点击此处,查看完整改进内容。

下载地址:


时间:2016-09-23 08:30 来源:开源中国社区 作者:达尔文 原文链接

好文,顶一下
(0)
0%
文章真差,踩一下
(0)
0%
------分隔线----------------------------


把开源带在你的身边-精美linux小纪念品
无觅相关文章插件,快速提升流量