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

Support optional struct fields (as opposed to nullable) #38

Closed
latos opened this issue May 2, 2017 · 2 comments
Closed

Support optional struct fields (as opposed to nullable) #38

latos opened this issue May 2, 2017 · 2 comments

Comments

@latos
Copy link
Contributor

latos commented May 2, 2017

Optional means the field can be absent (not null).

@timbod7
Copy link
Collaborator

timbod7 commented May 2, 2017

Would a hypothetical:

struct X
{
    optional T value;
};

be equivalent to

struct X
{
    Nullable<T> value = null;
}

along with a change to the serialiser that left out fields which have default values?

@timbod7
Copy link
Collaborator

timbod7 commented Nov 17, 2020

@timbod7 timbod7 closed this as completed Nov 17, 2020
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