Skip to content

Reject zero-length fixed-length lists #503

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

Closed
lann opened this issue Apr 22, 2025 · 0 comments · Fixed by #504
Closed

Reject zero-length fixed-length lists #503

lann opened this issue Apr 22, 2025 · 0 comments · Fixed by #504

Comments

@lann
Copy link
Contributor

lann commented Apr 22, 2025

We've intentionally avoided zero-sized types and would like to continue to avoid them.

alexcrichton added a commit to alexcrichton/component-model that referenced this issue Apr 22, 2025
Currently the component model and WIT generally avoid zero-sized types
since they're not always handled well in all languages. Given the niche
use case of a zero-sized list add a validation rule that
fixed-size-lists are non-zero in length.

Closes WebAssembly#503
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant