Kotlin 1.0.4 发布了。Kotlin 是一个基于 JVM 的新的编程语言,由 JetBrains 开发。
主要改进内容:
编译器:
-
Better type inference for callable expressions
-
More efficient bytecode for several cases of
when
andfor
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
点击此处,查看完整改进内容。