Skip to content

Should aliases be allowed in module types? #43

Closed
@alexcrichton

Description

@alexcrichton

With #29 components can now directly embed core wasm types sections, namely being able to define func types for example. This, unlike before, enables aliasing types in module type definitions unlike before where doing so wasn't necessary since there was nothing valid to alias.

With this new structure, would it perhaps make sense to allow aliases to appear in module type declarations? Similar to component/instance type declarations. Validation would ensure that only core type aliases are valid and additionally only non-module-type imports/exports would still be allowed for now.

Metadata

Metadata

Assignees

No one assigned

    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