Version 1.2 of the statically typed Kotlin language, a version of Java endorsed by Google for Android app development, offers an experimental feature enabling reuse of code across platforms, as well as compatibility with the Java 9 module system.

Where to get Kotlin 1.2

Kotlin 1.2 is bundled with JetBrains’ IntelliJ Idea 2017.3 IDE, which will be released by December 1. Users of the Android Studio IDE or an older version of IntelliJ can update to the new version via Tools > Kotlin > Configure Kotlin Plugin Updates.

The new features in Kotlin 1.2

Kotlin’s experimental multiplatform projects capability lets developers reuse code between supported target platforms: JVM and JavaScript initially, and later native. Code to be shared between platforms is placed in a common module; platform-dependent parts are put in platform-specific modules. During compilation, code is produced for both the common and platform-specific parts.

To read this article in full, please click here