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

Non-pointer optional types #28

Open
Coolnesss opened this issue Oct 23, 2017 · 0 comments
Open

Non-pointer optional types #28

Coolnesss opened this issue Oct 23, 2017 · 0 comments
Labels

Comments

@Coolnesss
Copy link
Collaborator

Coolnesss commented Oct 23, 2017

Currently only pointer types can be declared optional:

var a: int*    // non-optional, cannot be null
var b: int*?   // optional, can be null

Extend this feature also to other builtin types and structs, with the same postfix-? syntax.

This could be implemented using tagged unions once we have them, see #26.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: No status
Development

No branches or pull requests

1 participant