that pattenr matching that they showcased looks ug...
# random
n
that pattenr matching that they showcased looks ugly as hell
r
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
my reaction was to the if else chain, the switch usecase is much nicer