Also, it's customary in Kotlin to use `?:` for ear...
# language-proposals
d
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