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
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










