Skip to content

Rename Composite and Variant type defs #93

@ascjones

Description

@ascjones

@Robbepop and I went back and forth over this originally and settled on Composite and Variant as non-rust specific names for struct and enum types.

However I think this naming is slightly awkward in places, especially when writing code for a "variant" type which itself contains "variants".

So I think we should just use the enum and struct terminology, people understand what they are and the code will be easier to read/write. Also that is the terminology used in the SCALE defitions: https://substrate.dev/docs/en/knowledgebase/advanced/codec#enumerations-tagged-unions

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions