Kotlin 2.3.20 has become the latest version of the JetBrains-built language, featuring an interoperability mode for C or Objective-C libraries and name-based destructuring declarations for property names. Developers also can leverage Kotlin interfaces on JavaScript and TypeScript.
The update to the Java rival language was introduced March 16. Instructions for getting started with the language can be found on the Kotlin website. With the Kotlin Native technology in Version 2.3.0, for compiling Kotlin code to native binaries, developers can try the now-experimental interoperability mode for Objective-C and C libraries. This capability is geared to developers who use C or Objective-C libraries in Kotlin Multiplatform (KMP) libraries or applications. In general, Kotlin Native enables importing C and Objective-C libraries into Kotlin. However, for KMP libraries, this functionality is currently affected by the KMP compatibility issues with older compiler versions. Thus, if a KMP library compiled with one Kotlin version is published, importing C or Objective-C libraries might make it impossible to use that Kotlin library in projects with an earlier Kotlin version. To address this and other issues, the Kotlin team has been revising the interoperability mechanism. Starting with Kotlin 2.3.20, developers can try the new mode through a compiler option.
Also Kotlin 2.3.20 introduces name-based destructuring declarations that match variables to property names instead of relying on position-based componentN() functions. Previously, destructuring declarations used position-based destructuring, JetBrains said.



