4 ms·
I'm not a C# coder but I understood it was possible to have non-nullable types? Keep meaning to try C# for a project sometime. I understand it to be a more exp
by 3amOpsGuy 14y ago
I'm not a C# coder but I understood it was possible to have non-nullable types?
Keep meaning to try C# for a project sometime. I understand it to be a more expressive, programmer friendly Java.
- bunderbunder 14y agoValue types are non-nullable. But they're also stack-allocated* and passed by value, so they're really only appropriate in certain cases. You can't use them as general-purpose non-nullable objects. *In practice, though technically that bit's an implementation detail of Microsoft's run-time and not part of the language spec.
- spo81rty 14y agoFor some data types. Strings and objects can always be nullable.