
Developers now can create lightweight wrappers that do not allocate memory in most cases.Ī beta release of Kotlin 1.7.0 was published in May.
Implementation by delegation to an inlined value of an inline class is enabled. The development of the Kotlin compiler started many years ago, and. The new compiler aims to speed up the development of new language features, unify all the platforms Kotlin supports, bring performance improvements, and provide an API for compiler extensions. An underscore operator for type args can be used to automatically infer a type of argument when other types are specified. We’ve been working on a new K2 Kotlin compiler for quite some time.
Opt-in requirements are now stable and do not require additional compiler configuration. Builder inference, a type inference that is useful when calling generic builder functions, is automatically activated if a regular type inference cannot get enough information about a type without specifying the -Xenable-builder-inference compiler option introduced in Kotlin 1.6.0 last November. These provide better interoperability when extending generic Java classes and interfaces. Definitely non-nullable types have been promoted to stable. Other capabilities highlighted in Kotlin 1.7.0: Instructions for getting started with Kotlin can be found on the Kotlin Kotlin language website.