3 ms·
I'm OK with SCREAMING_SNAKE_CASE for constants, because that is an ubiquitous convention. Same for globals, they should be rare anyways (and constant most of th
by weinzierl 3y ago
I'm OK with SCREAMING_SNAKE_CASE for constants, because that is an ubiquitous convention. Same for globals, they should be rare anyways (and constant most of the times). For crates dashes are already widely used and that is how it should be.
+1 for plain keywords. Common separators when necessary (e.g. constants or everything that ends up in the filesystem, bc upper/lowercase is a pain there).
Regular struct, enum, trait variable names: CamelCase hands down, like almost everyone does it.
- insanitybit 3y agoVariable names in most languages are pascalCase, not CamelCase, which is typically used for type names.