Better HN
top
new
best
ask
show
jobs
Log in
Sign up
Better HN
Comment
by
tancop
· 1mo ago · 0 comments
Kotlin had it since 1.0, it's just called `when` instead of `match`.
https://kotlinlang.org/docs/control-flow.html#expressions
Comments
[–]
za3faran
1mo ago
Kotlin does not have inline destructuring in pattern matching.
[–]
ackfoobar
1mo ago
Pattern matching with only positional destructuring is a bad feature. I've written enough Scala to say this with confidence.
[–]
wiseowise
1mo ago
That’s just fancy switch statement.