Join Slack
Powered by
Is there a shorthand for `if (value == null) value...
# getting-started
j
jeff
05/27/2016, 2:47 PM
Is there a shorthand for
if (value == null) value = "Foo"
?
value = value ?: "Foo"
works, but does the
value = value
get optimized away?
Open in Slack
Previous
Next