JetBrains has unveiled Kotlin 1.6.20, a new release of the Kotlin language that capabilities far better interoperability with generic Java lessons as effectively as more quickly develop occasions. Some characteristics cited in the launch are still in preview kind.
Enhanced interoperability with generic Java lessons and interfaces was enabled through the inclusion of absolutely non-nullable forms, a attribute at the moment in a beta stage. Kotlin 1.6.20 enables builders to mark a generic style parameter as undoubtedly non-nullable using the new syntax,
T & Any.
Kotlin 1.6.20 was produced April 3. Set up instructions can be found on the Kotlin site. Other capabilities in Kotlin 1.6.20 include the adhering to:
- Kotlin/Native effectiveness has been improved via updates and bug fixes to the LLVM IR created by Kotlin.
- Hierarchical framework support for multiplatform jobs is enabled by default. This functionality, launched in Kotlin 1.4. in August 2020, enhances code sharing in a task.
- A prototype of context receivers for Kotlin/JVM delivers new assistance for defining context-dependent declarations.
Copyright © 2022 IDG Communications, Inc.