Kotlin 2.1.0 released: New language features, tooling updates & performance enhancements
Kotlin 2.1.0 has been released, introducing new language features, tooling updates, and performance enhancements. Notable language improvements include guard conditions in when expressions, support for non-local break and continue, and enhanced string formatting with multi-dollar string interpolation.
The K2 compiler has been updated for better flexibility in checks and improvements to the kapt tool. Kotlin Multiplatform now offers a stable Gradle DSL for compiler options and has received platform-wide enhancements. Kotlin/Native has improved its support for iosArm64 and other integrations, while Kotlin/Wasm now supports incremental compilation and additional updates.
The release also enhances compatibility with the latest versions of Gradle and the Android Gradle plugin. Kotlin 2.1.0 is included as a plugin in IntelliJ IDEA 2023.3 and Android Studio Iguana Canary 15, but it is no longer available on JetBrains Marketplace.
