-
Notifications
You must be signed in to change notification settings - Fork 8
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
Should we be allowing Const
nodes with void types?
#1873
Comments
Since there can be no value of void type, it should be impossible to construct a |
Hmm, yes for |
Whether or not we formally allow it in a HUGR I think anything downstream trying to compile or interpret it would be well within its rights to throw up its hands in despair. |
Hmmm. Why did we not force |
Also giving |
By void type I mean sums with 0 variants.
This type is very useful and I am not advocating touching it.
We should be able to infer from a wire of void type that it's source never terminates. For example, you can return a void type from
panic
no problem. But what doesLoadConstant
aConst
of void type mean?The text was updated successfully, but these errors were encountered: