Comment by za3faran
15 hours ago
I don't think Kotlin has fully fledged pattern matching with destructuring yet (like in Java's records) does it?
15 hours ago
I don't think Kotlin has fully fledged pattern matching with destructuring yet (like in Java's records) does it?
No it doesn't, but it also doesn't need it. Whereas in Java you write:
Kotlin with its smart cast feature lets you do