Skip to content

Usage of semicolon in traits definitions is inconsistent #5057

Closed
@thomas001

Description

@thomas001

In the definitions of struct and enum types the comma is used as separator between struct/enum members. In the definition of traits the semicolon is used instead. I think this syntax is inconsistent and should be changed to allow comma as separator for traits as well.

An intuitive explanation might be, that you enumerate things when using a comma, like struct members or even function arguments. The definition of a trait is also an enumeration of methods.

IMO there is no need to use the C++ish syntax here (but maybe there are parsing pitfalls which enforce the semicolon here).

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions