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

jopen 9年前

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

其主要设计目标:

  • 创建一种兼容Java的语言

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

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

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

Kotlin M13 发布,此版本更新内容如下:

  • Compiler daemon for faster compilation;

  • lateinit properties to support dependency injection and other frameworks;

  • sealed classes for expressing closed hierarchies;

  • Specifying and checking annotation targets;

  • Java get/set pairs are now seen as properties in Kotlin;

  • Better type safety for Java interop: taking @NotNull annotations into account (see this blog post);

  • Modifiers and annotations have been separated syntactically (see this blog post);

  • Fully functional reflection on classes, functions and properties;

  • Access to internal is now checked outside of a module (details below);

  • New .class file layout for top-level functions and properties;

  • and more (see below)

详细改进请看发行说明

同时发布了 Kotlin Eclipse Plugin 0.3.0,此版本新特性:

  • Kotlin M13 支持

  • 查找手册

  • 参数提示

  • 选择 enclosing/next/previous 元素

  • Override/Implement action

  • Body conversion intention

  • Debugger: Run to cursor

  • Debugger: Step into selection

  • 性能提升

来自:http://www.oschina.net/news/66535/kotlin-eclipse-plugin-0-3-0