|
|
|
|
|
by ohgodplsno
1515 days ago
|
|
Kotlin is quite explicit about nulls. Kotlin code requires you to use Type? if the value can ever be null. Java code that is annotated by @Nullable/@NonNull will automatically map to Type?/Type (and it is up of course to the developer to not fuck up their nullability promises.) Java code that is not annotated is a Type!, and encourages you to be wary about what could happen. The nullability story is miles better than Java. |
|