红联Linux门户
Linux帮助

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

发布时间:2014-12-18 11:06:24来源:红联作者:empast
Kotlin M10 发布,此版本添加了动态类型等等新特性。

语言方面的增强:

内联函数支持 Reified 类型参数

检测 declaration-site variance

类型推断支持 use-site variance

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://blog.jetbrains.com/kotlin/2014/12/m10-is-out/

下载地址:https://github.com/JetBrains/kotlin/releases/tag/build-0.10.4

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

共有 0 条评论