You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I know 0.8 is "almost there" and from what I understand Rust is now closer to removing features than adding new ones but it's not 1.0 yet so better to contribute.
I come from Go and after almost a year of using it, the best readability feature (aside from gofmt [*]) it has is not having public and private keywords, instead just looking how something is written you already know it, just by reading it without checking docs, wherever they are.
I'm moving to Rust and that's what I miss.
As always it costs something:
It's a big change, really big and it conflicts with how types are named right now.
It would require to rewrite all current std and extra code, but most of it can be automatized quite well (looking for pub and priv) then some volunteers can finish off, I'd gladly do it.
EDIT: Just as sidenote, I forgot to mention that this should support Unicode capitalisation which isn't trivial but it's still worth it and there's the guarantee that it only happens at compile time, one character per identifier.
[_]: _gofmt* is awesome and hopefully there's some folks working on rustfmt but it's not ready.
The text was updated successfully, but these errors were encountered:
The naming conventions of TypeName, function_or_variable_name and CONSTANT_NAME are very well established and unlikely to change at this point. I don't think Foo_bar_baz is a sane naming convention so it would mean changing the name of every single function we define to FooBarBaz or fooBarBaz.
It's possible that the priv keyword would be removed because it's almost always the default, but I definitely don't see Rust enforcing a naming convention like this.
triage, as @thestinger says this would be a fundamental change to the naming conventions of the language, and so is unlikely to happen for that reason (and since this has been open 4 months without any activity, I'm going to close).
(Personally I think that capitals-for-visibility end up encoding an enforced naming inconsistency into the language, and looks kinda weird too.)
I know 0.8 is "almost there" and from what I understand Rust is now closer to removing features than adding new ones but it's not 1.0 yet so better to contribute.
I come from Go and after almost a year of using it, the best readability feature (aside from gofmt [*]) it has is not having public and private keywords, instead just looking how something is written you already know it, just by reading it without checking docs, wherever they are.
I'm moving to Rust and that's what I miss.
As always it costs something:
EDIT: Just as sidenote, I forgot to mention that this should support Unicode capitalisation which isn't trivial but it's still worth it and there's the guarantee that it only happens at compile time, one character per identifier.
[_]: _gofmt* is awesome and hopefully there's some folks working on rustfmt but it's not ready.
The text was updated successfully, but these errors were encountered: