Uploaded September 2026 | Updated November 2026, 1 day 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.
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.










