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

Variant tags can have under-specified layout #386

Open
zilinc opened this issue Oct 29, 2020 · 1 comment
Open

Variant tags can have under-specified layout #386

zilinc opened this issue Oct 29, 2020 · 1 comment
Labels
bug dargent newcomer low-hanging fruit

Comments

@zilinc
Copy link

zilinc commented Oct 29, 2020

We don't allow layouts to be under-specified for now. E.g., a Bool type can't be larger than 1 bit. This design simplifies C code generation a lot, and also makes sense, as you really don't need more space than necessary to store anything. Variant tags are not currently checked for under-specification. They can be larger than necessary; this is just a thing we haven't implemented in the typechecker, and should be relatively easy to add.

@zilinc zilinc added bug dargent newcomer low-hanging fruit labels Oct 29, 2020
@zebraNeon
Copy link
Contributor

please take a look at #393

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug dargent newcomer low-hanging fruit
Projects
None yet
Development

No branches or pull requests

2 participants