Playing with Experimental Kotlin Features
summary
Overview of concrete changes and how to try them: Kotlin 2.2 adds multi-dollar interpolation (use $$ to emit $ in multiline strings), guard conditions in when, and non-local break/continue for inline lambdas; enable experimental flags with -X or update to 2.2. The evolution repo shows ~49 open KEEPs so check proposals and UTRA for status. Upcoming: context parameters (renamed from context receivers), nested type aliases, and the must use return values checker (-X return-value-checker) with 2.3; name-based destructuring and rich errors target 2.4.
AI-written summary · about
chapters (17)
- 0:00Experimental Kotlin features
- 1:05Kotlin evolution and new features
- 3:13Kotlin KEEP proposals
- 6:29Kotlin feature stages
- 9:42Experimental compiler flags
- 11:33Kotlin 2.2 features
- 14:05Multi-dollar string interpolation
- 15:54Guard conditions in when
- 17:44Non-local break/continue
- 19:10Context parameters
- 25:33Must-use return values
- 30:35Non-capturing type aliases
- 32:43Annotation use-site targets
- 34:50Kotlin 2.4 preview
- 35:13Name-based destructuring
- 37:26Rich errors and union types
- 39:34Summary
related talks
44mIdio~~ma~~tic Kotlin
39mKotlin, Practically Speaking
38mHow Kotlin 2.0 Will Evolve Android Development
52mPowered by Kotlin
45mKotlin Under the Hood
03h 23mKotlin 1.4 Online Event, Day 3: Kotlin everywhere: Android, Mobile Multiplatform, Kotlin/JS
41mAdvancing android development with the kotlin language
13mLevel Up Your Extension Game
