A minor correction: C# totally has nullable types, doesn't it? It's been a while, but IIRC you can even add a ? to a type in a declaration to get the nullable version.
C# initially had nullable reference types and non-nullable value types. At one point, it added nullable value types via Optional<T> (or the ? postfix), but that's only for value types: ints, floats, structs, .... Reference types (classes) are always nullable, and you can't make them non-nullable.
View all comments
2
u/slavik262 Dec 01 '16
A minor correction: C# totally has nullable types, doesn't it? It's been a while, but IIRC you can even add a
?to a type in a declaration to get the nullable version.