In Kotlin 2.3.20, you can now opt into the newly-revised syntax for destructuring... including name-based destructuring! For those cases where you prefer destructuring with the traditional position-based approach, you can still use that, too. In this clip from the TypeAlias Show Livestream, you can see what the new destructuring syntax is all about.
👉 Coroutines course: https://courses.typealias.com/coroutines
Use promo code SPRING26 by April 30, 2026 for 33% off.
🚀 Newsletter: https://newsletter.typealias.com/
✨ New to Kotlin? Start your journey here: https://typealias.com/start/
📚 Chapters
00:00 Problems with Position-Based Destructuring
03:04 Complete Mode
05:34 Only-Syntax Mode
06:12 Name-Mismatch Mode