Member-only story
What’s New In Kotlin 1.7.20?

On 29/09/2022 Kotlin 1.7.20 was released. Kotlin is a popular programming language for backend and Android development.
The new compiler is closer and closer to becoming the new default!
6 Compiler Plug-ins Now Work With K2 Compiler
With the new version progress is made to move newly introduced K2 compiler out from the alpha stage.
On the road to phase out standard compiler, K2 now supports several compiler plug-ins, namely:
- all-open
Used to annotate classes and their members open for frameworks and libraries.
- no-arg
Synthetic, zero argument constructor generator.
- SAM with receiver
Converter of a Java SAM’s first parameter into a receiver.
- Lombok
Makes it possible to mix with Java Lombok declarations.
- AtomicFU
Atomic operation library.
- jvm-abi-gen
ABI class generator.
To enable K2 compiler just pass this argument:

Just three features more, and a bonus for you!
Open Bound Operator Preview
The new open bound operator makes it possible to explicitly indicate that the upper range value is open, that is, the value should be lower than the upper range value.
Below is an example of the use of upper bound operator. Please note that the first range indicates that value should be bigger or equal to 0.0 and smaller than 0.25:

With this feature Kotlin proves it is a leading programming language!