2 ms·
What I mean by that is this: val a: SomeType? = null // I’m forced to null check here if (a != null) { a.someMethodOnIt() } // But I don’
by vips7L 1y ago
What I mean by that is this:
val a: SomeType? = null
// I’m forced to null check here
if (a != null) {
a.someMethodOnIt()
}
// But I don’t have to null check here
a.someExtensionFn()
It’s weird.