Join Slack
Powered by
ok `if( car?.isElectric ?: false )` is quite nice....
# announcements
b
bob
10/10/2016, 8:54 PM
ok
if( car?.isElectric ?: false )
is quite nice. And I agree that it’s a mix of bool and null that is the question here, maybe with a new expression
if?
it could have been clear what happens. Like so:
if?( car?.isElectric )
Open in Slack
Previous
Next