JVM-Targeted Kotlin M2 Released
JetBrains, the force behind the open source Kotlin project, announced this week the availability of Kotlin M2.
The second milestone release of the JVM-targeted programming language comes with a number of bug fixes, new language features and support for the Android operating system.
The new language features include four visibility modifiers (private, protected, public and internal), the ability to allow arrays to be passed to variable argument functions and adds a spread operator to convert arrays into vararg (variable arguments) lists.
The Prague-based maker of the code-centric Java IDE, IntelliJ IDEA, began developing Kotlin in 2010 and released it earlier this year for distribution under Apache 2 Open Source License.
JetBrains is continuing to work on the IDE plugin, the company says, and is "progressing pretty fast." The emphasis of that development is on performance and tighter integration with the Java IDE. The company points to some user-facing developments in the blog announcement, including: the IDE's ability to display error messages formatted in a "nice HTML-like way;" "Specify explicit type" refactoring; support for Cross-language Find Usages and Rename between Kotlin and Java code; and support for navigation to inheritors, among others.
The M2 release also improves on the integration with Maven and Ant build tools, the company says.
Breslav said project supports also plan to provide "good library support for Android."
"We suspect that most of Android's XML files can be replace with Kotlin's builders that are much nicer in many ways," he wrote.
The blog includes links to examples and installation instructions. The full source code and other resources are available on the JetBrains/Kotlin Github repository.
(According to Wikipedia, Kotlin is the name of a Russian island located near the head of the Gulf of Finland, 20 miles west of Saint Petersburg in the Baltic Sea. One of JetBrains' development offices is located in Saint Petersburg.)