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

jopen 9年前

Kotlin M10 发布,此版本添加了动态类型等等新特性。

语言方面的增强:

JavaScript 方面支持动态类型,新注解等新特性:

  • Kotlin.js 输出

  • kotlin-js 编译器支持非 stdlib 选项

  • 可以直接在 Kotlin 代码输出 js 代码

  • Java Interop

  • [platformStatic] for properties

  • Static fields in objects

  • JNI and [native]

IntelliJ IDEA 方面的改进:

  • Incremental compilation in mixed projects

  • HotSwap fixed in debugger

  • Evaluate Expression: Completion improvements

  • Copy reference

  • Create from usage for classes and packages

  • Generics in change signature

  • Completion improvements

  • Runnable objects

  • Code Coverage highlighting in the Editor

  • JavaScript project configuration

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

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

其主要设计目标:

  • 创建一种兼容Java的语言

  • 让它比Java更安全,能够静态检测常见的陷阱。如:引用空指针

  • 让它比Java更简洁,通过支持variable type inference,higher-order functions (closures),extension functions,mixins and first-class delegation等实现。

  • 让它比最成熟的竞争对手Scala语言更加简单。

来自:http://www.oschina.net/news/58045/kotlin-m10