jbx
02/06/2017, 7:50 PMval 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.