is there a way to create bounded lists?
e.g.)
record {
items list<s32> // limit to 8 elements?
}
No, though if you have a use case for it, there's an issue that's collecting them: https://github.com/WebAssembly/component-model/issues/181
Right on, it's not a strong use case, but I'm experimenting using md5 and wanted to limit the buffer to 64 bytes. I'll review the component model issue and perhaps comment.
Last updated: Dec 23 2024 at 12:05 UTC