Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Nullable types #11

Open
waneck opened this issue Jun 22, 2013 · 1 comment
Open

Nullable types #11

waneck opened this issue Jun 22, 2013 · 1 comment

Comments

@waneck
Copy link
Owner

waneck commented Jun 22, 2013

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

@Simn
Copy link
Collaborator

Simn commented Sep 28, 2013

Any more thoughts on this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants