Kotlin 2.3 stabilized a feature that a lot of Kotlin developers missed - you can now use an explicit `return` in expression bodies. But why is this needed? Surprisingly, it fits in very strategically with Kotlin's long-term game plan. I'll show you how.
📚 Chapters
00:00 return in Expression Bodies...?
00:29 Demo and Requirements
01:10 Concise Code
02:44 The Long-Term Play
05:10 Summary
🚀 Newsletter:
https://newsletter.typealias.com/
💬 Rich Errors Presentation - KotlinConf 2025:
• Rich Errors in Kotlin | Michail Zarečenskij
📝 Rich Errors KEEP:
https://github.com/Kotlin/KEEP/blob/m...