-
Notifications
You must be signed in to change notification settings - Fork 13.6k
Closed
Labels
A-grammarArea: The grammar of RustArea: The grammar of RustA-trait-systemArea: Trait systemArea: Trait system
Description
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
Labels
A-grammarArea: The grammar of RustArea: The grammar of RustA-trait-systemArea: Trait systemArea: Trait system