Title
h

harmony

05/21/2017, 7:24 PM
because now I have to use
val x = y
if (x != null) {}
o

okkero

05/21/2017, 9:01 PM
harmony: Couldn't you just check
y
directly?
if (y != null) {}
g

gjesse

05/21/2017, 9:05 PM
if you're worried about y being maybe reassigned you can do
y?.let{
   // anything in here is null safe
   // and will only be excuted if y != null
}
h

harmony

05/21/2017, 9:28 PM
y is a function call
t

trevjones

05/21/2017, 9:37 PM
Remains the same
y()?.let { it.something() }
šŸ‘ 1