Skip to content

Document fixed-size-lists must be non-empty #504

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

Merged
merged 1 commit into from
Apr 25, 2025

Conversation

alexcrichton
Copy link
Collaborator

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 #503

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
@alexcrichton
Copy link
Collaborator Author

cc @ChristofPetig

Copy link
Member

@lukewagner lukewagner left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@lukewagner lukewagner merged commit 0a37def into WebAssembly:main Apr 25, 2025
1 check passed
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 this pull request may close these issues.

Reject zero-length fixed-length lists
2 participants