Have there been any other requests for this kind of syntax? It doesn’t seem messy to me, and seems more concise than an empty when with the full logic in each “case” block.
Any chance it could be added to the future roadmap for Kotlin?
Also you might be interested in this discussion about adding it to when. When desperately needs `it`
But I think the closest solution to your problem would be