Skip to content

Add support for sized lists: list<u8, 4> #57

Closed
@mkatychev

Description

@mkatychev

from the WIT design doc:

🔧 A list with a fixed length provides the low-level memory representation of a homogeneous tuple of the same length, but with the dynamic indexing of a list. E.g., the following two functions have the same low-level (Core WebAssembly) representation, but will naturally produce different source-level bindings:

get-ipv4-address1: func() -> list<u8, 4>;
get-ipv4-address2: func() -> tuple<u8, u8, u8, u8>;

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions