<@U0BLU7JTA> Nice! `val y = foo(x) ?: continue` s...
# language-proposals
@dmitry.petrov Nice!
val y = foo(x) ?: continue
syntax was not obvious at all. I glossed over that detail in the reference manual. In my head I had imagined
being defined as something like
fun <T?> ?:(optional: T?, defaultValue: T): T { ... }
because of the similarity to Swift’s
operator. But Swift does not evaluate the RHS as an expression.