Join Slack
Powered by
is `?:` always lazy? for example, is `maybeReturns...
# getting-started
y
y
02/19/2023, 2:08 PM
is
?:
always lazy? for example, is
maybeReturnsNull() ?: expensiveFunctionCall()
guaranteed not to evaluate the expensive function call?
👀 1
e
ephemient
02/19/2023, 2:36 PM
https://kotlinlang.org/spec/expressions.html#elvis-operator-expressions
ephemient
02/19/2023, 2:36 PM
https://kotlinlang.org/docs/null-safety.html#elvis-operator
may be an easier read
y
y
02/19/2023, 2:36 PM
Thanks
6
Views
Open in Slack
Previous
Next