Posts

Showing posts from 2025

Kotlin Context Parameters

Context receivers have been around in Kotlin since version 1.6.20 in experimental state, now they have entered preview state with version 2.2.0 under the name context parameters. The experimental phase has been used to get a better understanding of the use cases, to introduce improvements and to clarify the syntax. After a recap of the evolution, this article will show some use cases and the syntax, in order to give you an impression of the possibilities offered by context parameters. Read the article on medium...