Kotlin 1.6.0 is now officially released with Stable exhaustive whens
, Kover, and a new memory manager for Kotlin/Native. Other language and standard library features released in 1.5.30 became Stable as well. Thanks for the feedback you’ve shared with us. If you still haven’t tried these new features out, now is the time!
In this blog post, you can find an overview of the following updates:
- Language features with sealed when statements, suspending functions and suspend conversions, instantiation of annotation classes, improved regular type inference and builder type inference.
- Kotlin/JVM with optimized delegated properties and repeatable annotations.
- Kotlin/Native with a preview of a new memory model, Xcode 13 support, a cross-compilation of Windows targets, LLVM and linker updates, performance updates, and unified compiler plugin ABI.
- Option to disable downloading of Node.js and Yarn for Kotlin/JS.
- Kover announcement.
- Standard library with new functions for standard input, Stable
typeOf()
, Stable Duration API, and other stabilized stdlib functions. - 转自 Kotlin 1.6.0 Released | The Kotlin Blog (jetbrains.com)