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

Don't require type when using null values #2

Open
SiXoS opened this issue Aug 17, 2021 · 0 comments
Open

Don't require type when using null values #2

SiXoS opened this issue Aug 17, 2021 · 0 comments
Labels
bytecode This requires a change in the bytecode enhancement New feature or request

Comments

@SiXoS
Copy link
Owner

SiXoS commented Aug 17, 2021

It's odd that the type must be specified when using null values.

Suggestion is to add a new type and change the typing logic so that any null type can be assigned to any other type. Support for the null type should not be needed as it should bnever be used in any type declarations. It's only a typechecking type.

When assigning null to a value that doesn't already have a type, you still need to specify type.

@SiXoS SiXoS added enhancement New feature or request bytecode This requires a change in the bytecode labels Aug 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bytecode This requires a change in the bytecode enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant