https://kotlinlang.org logo
#announcements
Title
# announcements
a

anstaendig

09/18/2017, 1:38 PM
Don’t allow myString and myInt to be null in the first place 😎
s

Shawn

09/18/2017, 1:39 PM
politely ask the compiler to disallow nulls for platform types 😛
a

anstaendig

09/18/2017, 1:42 PM
I’ d still get rid of the nullability as early as possible instead of passing it down into functions I implemented
No?
s

Shawn

09/18/2017, 1:45 PM
That’s totally fair, I was just being specious - I think the snippet above wasn’t necessarily what they literally had in their code, so I didn’t rule out the possibility of their logic being called directly from some code they didn’t control
r

rook

09/18/2017, 1:50 PM
Working in android usually means handling null scenarios for views, especially in tests.
3 Views