Join Slack
Thanks for the answers, I think I will stick with the if version :slightly_smiling_face:
# getting-started
t
tulio
06/12/2017, 4:22 PM
Thanks for the answers, I think I will stick with the
if
version 🙂
👍 1
e
emmax
06/12/2017, 9:04 PM
tulio: Is doSomething() returning a value? If not you could just say value?.doSomething() without the
let
or
if
, it will only execute the doSomething if value is not null or otherwise move on.
4
Views
Open in Slack
Previous
Next
kotlinlang
A modern programming language that makes developers happier.
Powered by