Skip to content
This repository was archived by the owner on Mar 9, 2025. It is now read-only.

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 subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant