Kotlins Name-Based Destructuring @Kotlin
Kotlins Name-Based Destructuring  @Kotlin
Uploaded September 2026 | Updated November 2026, 3 hours ago
Kotlin’s name-based destructuring feature has been released under an experimental flag. This feature will become stable in Kotlin 2.5.0, which will be released near the end of 2026.

Before this feature, Kotlin only had position-based destructuring of data classes, but this way of mapping data class members to new variables lacked clarity and caused subtle bugs. Using name-based destructuring will eliminate whole categories of these bugs.

Chapters:
0:00 Introduction
1:38 Bytecode sidequest
2:33 The problem with position-based destructuring
4:19 Name-based destructuring has entered the chat
7:04 New position-based destructuring syntax
8:09 Three compiler flag options (in experimental)
9:32 Migration plan
11:10 Closing

#kotlin
Kotlins Name-Based DestructuringAdvent of Code 2025 in Kotlin. Day 2.Jake Wharton | KotlinConfersations26Practical Filament - Reshape your UI! | Nicole TercChapter 1 of our Kotlin Coroutines workshop: the basicsAdvent of Code in Kotlin 2026. Day 3Opinionated Ktor Services | Simon VergauwenKotlin/Wasm: Finally, the missing piece for a full stack Kotlin webapp! | Dan KimMillions of coroutines on a few thousand threadsBuild Tools API: a stable interface for the Kotlin compiler | Wojtek KalicinskiMetro Under the Hood | Zac SweersPowering Up Your Assertions | Brian Norman
Kotlin by JetBrains |

Kotlin's Name-Based Destructuring

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER