haxe-genc icon indicating copy to clipboard operation
haxe-genc copied to clipboard

Nullable types

Open waneck opened this issue 12 years ago • 1 comments

We need to think how to generate Nullable types efficiently

My take would be that for every value type there is, we generate something like:

struct Null_int {
    bool hasValue;
    int value;
}

This way Null<Int> is nothing but this struct; Still, we need to think how to interact with type parameters - in special returning values from type parameters

waneck avatar Jun 22 '13 05:06 waneck

Any more thoughts on this?

Simn avatar Sep 28 '13 12:09 Simn