style question: I have a flag that is initially se...
# random
k
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)