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

jackmiras

07/19/2017, 3:33 PM
Yes we could, but what if the team is trying to avoid nullability hard as they can? Of course that we could write some function to work around this but would much nicer if this kind of feature was provide natively.
r

Ruckus

07/19/2017, 4:18 PM
I think "avoiding nullability as hard as they can" is an incorrect mindset to have. Nullability can be extrememly useful. The fact that Kotlin adds null safety doesn't mean you should avoid null, but instead use it where appropriate (unlike Java where null is implicit everywhere).
2
4 Views