https://kotlinlang.org logo
c

cypher121

08/23/2016, 3:09 AM
if you expect it not to change, then
a!!.let {...}
is the way to go (although I'd really think twice on using assertions at all). the only case I can think of is when it can change, but not become null, but if that's the case, referring to it means begging for a race condition