the val syntax could open up other chances for bei...
# language-proposals
a
the val syntax could open up other chances for being a bit more expressive.
Copy code
val c = when (val (a, b) = expr()) {
   a.contains(”asdf”) -> fn1(b)
   else -> fn2(b)
}