基于 JVM 的编程语言,Kotlin 1.0 Beta 4 发布
Kotlin 是一个基于 JVM 的新的编程语言,由 JetBrains 开发。
其主要设计目标:
-
创建一种兼容Java的语言
-
让它比Java更安全,能够静态检测常见的陷阱。如:引用空指针
-
让 它比Java更简洁,通过支持variable type inference,higher-order functions (closures),extension functions,mixins and first-class delegation等实现。
-
让它比最成熟的竞争对手Scala语言更加简单。
Improved incremental compilation (Experimental)
Language
Library changes
What’s new in the IDE
-
Quick-fix for renaming unresolved references was added. It’s handy for adjusting symbols’ names when pasting some code to a different context:
-
Now the IDE lets you create functions from unresolved callable references:
-
Go to Test
andCreate Test
actions now work for top-level functions:
-
Convert anonymous function to lambda expression intention has been added
-
Go to class
andSearch everywhere
now show Kotlin built-in types
-
In debugger: option ‘Skip simple getters’ is now supported, which means that debugger won’t stop at properties defined in constructors, properties without getters or whose getters that return the value of some field