Enhanced Nullable Types

From The Oxygene Language Wiki
Jump to: navigation, search

This is a Language topic about Oxygene
 

Language Topics Introduction | Structured Overview | Grammar | Keywords | Functions



Nullable types were enhanced to make them feel more like a full language feature that fits in neatly with the other types, rather than a runtime trick.

For example, variables defined as "nullable Int32" allow full and direct access to all members of Int32 and behave like a true Int32 in every sense - with the addition of allowing nil values.

In combination with the new ":" operator and the newly introduced valueOrDefault helper function, nullable types are now easier to use than ever, and feel much more natural than in any other .NET language.


See Also

Personal tools
Namespaces

Variants
Actions
Navigation
Getting Started
Sections
If you know
More
Toolbox