-
-
Notifications
You must be signed in to change notification settings - Fork 938
Closed
Description
can't mix underscores or other symbols to names, how to define a large protocol ?
imagine a few hundreds of these used on real code to implement a network protocol:
pub type OptionType {
OptionTypeFoo
OptionTypeBar
OptionTypeBaz
}
pub type ExampleResponseOrError {
ExampleResponseOrErrorResponse(response: option.Option(Response))
ExampleResponseOrErrorError(error: String)
}
in other langs, u at least can use some symbols on the names
pub type OptionType {
OptionType_Foo
OptionType_Bar
OptionType_Baz
}
in rust u have multiple alternatives to avoid name clashes, and reduce visual clutter or at least hint where a name ends and another stars
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels