Y
Hacker News
new
|
ask
|
show
|
jobs
by
tancop
46 days ago
Kotlin had it since 1.0, it's just called `when` instead of `match`.
https://kotlinlang.org/docs/control-flow.html#expressions
2 comments
za3faran
46 days ago
Kotlin does not have inline destructuring in pattern matching.
link
ackfoobar
46 days ago
Pattern matching with only positional destructuring is a bad feature. I've written enough Scala to say this with confidence.
link
wiseowise
46 days ago
That’s just fancy switch statement.
link