|Kotlin 1.05 Released|
|Thursday, 10 November 2016|
A new version of Kotlin, the language created by JetBrains, has just been released. Kotlin is another Java replacement and it claims, or rather aims, to be better while fully interoperable.
The most notable improvements are:
The IntelliJ IDEA plugin can now detect many cases where imperative
As a simple example, the following snippet:
will be automatically converted to:
To trigger the conversion, put the caret on the
This might seem perfectly natural to a functional programmer but not so much to a hardline object-oriented programmer.
Also new is postfix code complietion which works like the sort of code completion you know and love but it will wrap what you have already written in a construct rather than just complete what you are writing. The example given by JetBrains is you can write a boolean expression and retrospectively wrap it in an if statement. The idea is that you can avoid having to move the insertion position backwards. Postfix code completion has now come to Kotlin and it is promised to be in Android Studio when it upgrades to the new IntelliJ platform.
Another "tool" improvement are some new refactorings:
The Kotlin plugin now supports “Extract Interface” and “Extract Superclass” refactorings, which were previously only supported only for Java and some other languages, as well as an entirely new refactoring “Introduce Type Parameter”, providing an easy way to change a class or function into a generic one.
What is the future of languages such as Kotlin?
If you look a the Github activity it seems to be ramping up, not dying off, and there is a healthy community of contributors. However, Kotlin, despite having admirers, doesn't seem close to making a Ruby- or a Lua-like breakthrough to gain a wider audience.
Given that Google already uses the open source version of intelliJ to implement Android Studio, Kotlin could make a replacment for Java in Android development if Oracle's impending appeal court case reverses the verdict in May that Google's ue of Java APIs was lawful and constituted fair use.
Google has its own JVM and has swtiched to the open source class library, so a JVM language that already has Android development experience might be an interesting proposition.
or email your comment to: firstname.lastname@example.org
|Last Updated ( Thursday, 10 November 2016 )|