3 ms·
C# (values) or Nice don't use a full, explicit nullable generic type, and instead tag the original type (`int?` for C#, `?String` for Nice). This means some_fi
by masklinn 16y ago
C# (values) or Nice don't use a full, explicit nullable generic type, and instead tag the original type (`int?` for C#, `?String` for Nice).
This means some_field could be a type tagged as nullable (e.g. `some_field` would be defined as ?Foo).
An alternative would be `@NotNull` opt-in anotations, where `some_field` would not be tagged, therefore nullable, therefore could hold the value `null`.
Thus, if you have to check it for null then `some_field` is a nullable reference, in a language which may have nullable and non-nullable references.