and what is example of context where it would help...
# language-proposals
g
and what is example of context where it would helpful? I mean some code that an be improved using these extensions
i
We could gain a bit of consistency when dealing with multiple objects, but I agree it’s a small benefit, probably not worth it
Copy code
val running = true

objectA?.let {
      //doStuff
}
      
objectB?.let {
      //doStuff
}

object.ifTrue {
      //doStuff
}

if(objectC) {

}

objectD?.let {
      //doStuff
}
g
but let with safe call operator has different semantics here, it’s still not consistent with non-nullable boolean value
i
not saying it’s perfect just saying it’s a little bit better