Enhanced Nullable Types

From The Oxygene Language Wiki

Jump to:navigation, search

This is a Language topic
Feel free to add your notes to this topic below.



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


Oxygene-48.png

Area: Oxygene Language
Compiler version: Oxygene 5

Language GlossaryKeywordsTypesFAQHow To

Navigation
Areas
More
Toolbox