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

Add void literal #29

Closed
yhara opened this issue Apr 17, 2020 · 3 comments · Fixed by #159
Closed

Add void literal #29

yhara opened this issue Apr 17, 2020 · 3 comments · Fixed by #159
Labels
design About language design

Comments

@yhara
Copy link
Collaborator

yhara commented Apr 17, 2020

At first I'm planning to use Void as void literal. However I found this conflicts of Void class object.

How about adding void pseudo variable like true and false?

@yhara yhara added the design About language design label Apr 17, 2020
@yhara
Copy link
Collaborator Author

yhara commented Apr 17, 2020

void corresponds with () in Rust, etc.

@yhara
Copy link
Collaborator Author

yhara commented Jul 28, 2020

Another idea is to add Void.instance method.

@yhara
Copy link
Collaborator Author

yhara commented Sep 6, 2020

Or why not let Void be the instance? I don't think there are many chances to use Void the class (even if any, you can write Void.class instead)

yhara added a commit that referenced this issue Sep 16, 2020
@yhara yhara mentioned this issue Sep 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
design About language design
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant