Join Slack
Powered by
Also, it's customary in Kotlin to use `?:` for ear...
# language-proposals
d
dmitry.petrov
05/26/2016, 1:13 PM
Also, it's customary in Kotlin to use
?:
for early return. E.g.,
Copy code
fun doStuff() { val x = foo() ?: return val y = bar() ?: return // use x and y }
👍 1
Open in Slack
Previous
Next