Skip to content

Can records be empty? #406

@ouillie

Description

@ouillie

According to the current spec, they can't. But pretty much all the programming languages I know (Rust, Go, C++, Java, Python, Ruby, C [at least GCC]) allow you to define empty structs and/or classes. Sometimes it can be useful, such as for sentinel values. What if we allowed WIT records to be empty (no members)?

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