4 ms·
Why would people use it everywhere in Kotlin? I thought types weren't nullable by default. Also I don't see the difference between if(a != null) { a.b(); } and
by imtringued 4y ago
Why would people use it everywhere in Kotlin? I thought types weren't nullable by default.
Also I don't see the difference between if(a != null) { a.b(); } and a?.b().
They won't result in NPEs either way and I see the former everywhere in Java as well.