3 ms·
> No, this is valid in languages with nullable types: > String s = null; Only in languages with default-nullable types, (where the non-nullable form, if it ex
by dragonwriter 6y ago
> No, this is valid in languages with nullable types:
> String s = null;
Only in languages with default-nullable types, (where the non-nullable form, if it exists at all, would be something like “String s!”); in languages with explicity billable types, the above is not allowed, because you would need to explictly opt-in to nullability:
String s? = null