that pattenr matching that they showcased looks ugly as hell
r
robin
10/24/2018, 12:04 PM
I think in the context of java it actually isn't that bad - and if you now translate the code straight to a Kotlin-ish syntax, this could be exciting if integrated into Kotlin properly:
Copy code
when (x) {
is Pair(a, _) -> println(a)
}
n
Nikky
10/24/2018, 12:08 PM
my reaction was to the if else chain, the switch usecase is much nicer