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, valued literals are not currently expressible #86

Closed
jacques-n opened this issue Nov 24, 2021 · 1 comment
Closed

Nullable, valued literals are not currently expressible #86

jacques-n opened this issue Nov 24, 2021 · 1 comment

Comments

@jacques-n
Copy link
Contributor

Right now, there is no way to express a nullable literal for non-null values. I think we need to introduce a "nullable" property on all literals.

For example, I want to create an i8? literal that is defined as 5. Right now, this is impossible. I can only declare an i8 of 5 or a i8? that is null. In a 2x2, the problem is the lower right below:

Category No Value With Value
Non-nullable Typed Null Literal Value Literal
Nullable Typed Null Literal Not Possible

While a bit arcane, this is important to express in strongly typed systems when trying to do a roundtrip.

@jacques-n
Copy link
Contributor Author

Resolved in #88

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

1 participant