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 #16

Closed
ricardoboss opened this issue Aug 11, 2023 · 1 comment · Fixed by #102
Closed

Nullable types #16

ricardoboss opened this issue Aug 11, 2023 · 1 comment · Fixed by #102
Labels
enhancement New feature or request
Milestone

Comments

@ricardoboss
Copy link
Owner

null is already a part of the language and many languages have nullable types.

Explicit support for nullable types also opens up the possibility for less error prone code as variables explicitly need to allow null to be assigned to them.

Nullable type declarations might look like this:

string? a = "hello"
string? b = null

number? n = null

list? l = null
@ricardoboss ricardoboss added the enhancement New feature or request label Aug 11, 2023
@ricardoboss ricardoboss added this to the Next milestone Aug 11, 2023
@ricardoboss
Copy link
Owner Author

ricardoboss commented Oct 18, 2023

Implement this after #46

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

1 participant