Join Slack
Powered by
I spent too much time trying to avoid if (commit !...
# getting-started
d
DMITRY.
04/02/2021, 9:44 PM
I spent too much time trying to avoid if (commit != null) heh
e
ephemient
04/02/2021, 10:09 PM
it's a
val
so there's nothing wrong with writing
if (commit != null)
and letting smart casting do its thing, I wouldn't say one is always preferred over the other
4
Views
Open in Slack
Previous
Next