Join Slack
Powered by
style question: I have a flag that is initially se...
# random
k
kirillrakhman
02/09/2016, 4:11 PM
style question: I have a flag that is initially set to
false
and a buffer that is initially not-null. once the flag is set to
true
, the buffer will be nulled. would you write: 1)
Copy code
if (!flag) buffer!!.addAll(something)
or 2)
Copy code
if (!flag) buffer?.addAll(something)
4
Views
Open in Slack
Previous
Next