Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upAdd alias 'nonstandard_style' for 'bad_style' #41646
Comments
Manishearth
added
the
A-lint
label
Apr 30, 2017
This comment has been minimized.
This comment has been minimized.
|
(Actual name of alias very bikesheddable, I just picked the first thing that came to mind.) |
This comment has been minimized.
This comment has been minimized.
|
Bikeshed: "relaxed_style" sounds good. |
This comment has been minimized.
This comment has been minimized.
leonardo-m
commented
Apr 30, 2017
|
"bad_style" sounds better than "nonstandard_style" because "nonstandard" sounds un-opinionated. The point of a "bad_style" annotation is to help people feel guilty. |
This comment has been minimized.
This comment has been minimized.
|
Right, I'm questioning if that's a good thing. Do we need to? Even nonstandard_style (or in general, any warning-allow) does make you feel guilty, bad_style is just very much like a shaming and feels bad. |
This comment has been minimized.
This comment has been minimized.
|
Her talk was great. I think using something like relaxed_style or permissive_style would be a better choice then bad_style |
This comment has been minimized.
This comment has been minimized.
tumdum
commented
Apr 30, 2017
|
I think that 'any_style' is short and is not passive aggressive at all :) |
steveklabnik
added
I-nominated
T-compiler
T-lang
labels
Apr 30, 2017
This comment has been minimized.
This comment has been minimized.
|
marking as both @rust-lang/compiler and @rust-lang/lang ; not sure who this falls under, really. Also nominating for discussion; I'm not sure if this requires an RFC or not. |
This comment has been minimized.
This comment has been minimized.
|
As one of the heaviest users of |
This comment has been minimized.
This comment has been minimized.
|
i have no opinion on what we alias it as, but i would be very interested in an alias that is less shame-y. i am also very happy to implement once we decide what a good alias is! |
This comment has been minimized.
This comment has been minimized.
|
For those readers who (like me) were not familiar with the I'm in favor of renaming. I like Regarding whether this ought to have an RFC -- I could go either way; if we opt for no RFC, then we ought to at least do a "mini-FCP" here in the issue. TBH I'm not sure what team has ownership of lints though. =) I guess @rust-lang/lang? |
This comment has been minimized.
This comment has been minimized.
|
I definitely don't feel this needs an RFC. I also wholeheartedly agree that we should change the name.
|
This comment has been minimized.
This comment has been minimized.
Do we really want the "alternative facts" connotation? I can already see someone writing that awful snark and the HN frontpage it'll hit and I'd really rather not have it. |
This comment has been minimized.
This comment has been minimized.
|
Heh, I hadn't realized that the term "alternative" had gotten quite so poisoned! Anyway my preferences here aren't very strong. |
This comment has been minimized.
This comment has been minimized.
|
I'm happy with any non-judgmental name, we can FCP the PR (I also don't care if we don't) |
This comment has been minimized.
This comment has been minimized.
|
FWIW I like the
If something I'm worried there's too much friction for even minor deviations; I don't think I'll ever use rustfmt, for example. |
This comment has been minimized.
This comment has been minimized.
|
Given that this comes up often in code translators (such as corrode), and potentially in binding generators as well, then having a more neutral alias for this seems appropriate. I also don't think adding an alias needs an RFC. I'm not going to add to the bikeshedding on the name itself. |
This comment has been minimized.
This comment has been minimized.
|
I prefer |
This comment has been minimized.
This comment has been minimized.
|
As someone who has been annoyed by some C++ codebases that despite having official casing rules use different casing styles in parallel (including libraries using different casing styles), I am glad of those checks to be in the compiler and default on, because they create consistency. I believe this wish of consistency in this issue to be universal, so this isn't just a style issue where everyone can have its own, as your choice of casing gets forced upon the users of your library as well. I use tabs in my codebase and am writing This check has many positive side effects. Like when reading code, you get accustomed to differentiate things inside lists of Looking at the issue from the other perspective, renaming the lint to Also, for beginners its important to see that the style they are doing is not fine, but rather something that is bad for the community of crates, especially their users, due to the inconsistency to the other crates on crates.io. Overall though I don't feel very strongly about a rename, as long as the lint stays a warning by default. |
This comment has been minimized.
This comment has been minimized.
No more than Beginners already see that the style is not great. This is just about making it possible to design your own beginner experience without feeling bad about it. This doesn't change the warning's existence, it just changes the name so that it isn't discouraging when disabled. |
This comment has been minimized.
This comment has been minimized.
|
One example for how the snake case style helps you to identify a bug: https://is.gd/XArdpj You need to look twice to see that the last case in the match is creating a new variable instead of being an actual enum variant. |
This comment has been minimized.
This comment has been minimized.
|
@est31 I find this example rather contrived (it switches off multiple layers of safety and imports the matching shorthand). Sure, "nonstandard_style" brings you half-way there, but the option is in the compiler and supported, this discussion is about an alias only. |
nikomatsakis
removed
T-compiler
I-nominated
labels
May 24, 2017
This comment has been minimized.
This comment has been minimized.
|
@rfcbot fcp merge I agree we don't need an RFC. I'm moving that we agree to change the name to |
This comment has been minimized.
This comment has been minimized.
Its not a contrived example: I have encountered it in one of my programs. Luckily I had the
No, its about deprecation as well, and probably a Rust 2.0 or something will remove the name. |
This comment has been minimized.
This comment has been minimized.
|
Most lints prevent bugs. That isn't an argument for giving it a name like that.
deprecating the name, not the lint. |
This comment has been minimized.
This comment has been minimized.
|
Moderator note: I've removed a couple comments that violate our CoC, and am temporarily locking this issue to prevent further trolling. We can re-open this in 24 hours. |
rust-lang
unlocked this conversation
Aug 30, 2017
rust-lang
deleted a comment
Sep 6, 2017
rust-lang
deleted a comment
Sep 6, 2017
rust-lang
locked and limited conversation to collaborators
Sep 13, 2017
withoutboats
referenced this issue
Feb 20, 2018
Merged
Add nonstandard_style alias for bad_style. #48386
kennytm
added
C-tracking-issue
and removed
C-feature-request
labels
Feb 22, 2018
Centril
added
finished-final-comment-period
disposition-merge
and removed
final-comment-period
labels
May 24, 2018
frewsxcv
referenced this issue
Aug 29, 2018
Merged
Replace usages of 'bad_style' with 'nonstandard_style'. #53786
This comment has been minimized.
This comment has been minimized.
|
This was fixed in #48386 (looks like we forgot to unlock) |
Manishearth
closed this
Aug 29, 2018
rust-lang
unlocked this conversation
Aug 29, 2018
This comment has been minimized.
This comment has been minimized.
|
@Manishearth #48386 has a comment from you saying that it doesn't fix this issue completely, reopening because I don't see any other linked PRs |
carols10cents
reopened this
Aug 29, 2018
This comment has been minimized.
This comment has been minimized.
|
Oops, sorry!!
…On Wed, Aug 29, 2018, 9:10 AM Carol (Nichols || Goulding) < ***@***.***> wrote:
Reopened #41646 <#41646>.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#41646 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/ABivSK6jlQgnCk31NbUAIde7vYmvCI9Kks5uVrzWgaJpZM4NMg4Q>
.
|
pietroalbini
pushed a commit
to pietroalbini/rust
that referenced
this issue
Aug 29, 2018
pietroalbini
added a commit
to pietroalbini/rust
that referenced
this issue
Aug 29, 2018
pietroalbini
added a commit
to pietroalbini/rust
that referenced
this issue
Aug 29, 2018
pietroalbini
added a commit
to pietroalbini/rust
that referenced
this issue
Aug 30, 2018
This comment was marked as off-topic.
This comment was marked as off-topic.
While I agree with this naming change, I don't agree with moderator implying people are "trolling" when they voice their disagreement. In Wikipedia, Troll is defined as
The disagreement in this thread may be unpleasant, or sometimes even inflammatory, but we need to have some concrete evidence to prove the intent of those messages are "provoking readers into displaying emotional responses and normalizing tangential discussion" before labeling them as "trolling", even more so when it's coming from moderators. This is especially important when we strive to achieve an inclusive community that welcomes diversity. True diversity is not about people with different colors of skin or gender with the same level of preferrance for how we should approach social progression, it should be about really including everyone who wants to make Rust better. This includes people who comes from a different culture and may not know different nuances in western / English expression, people who are not good at English to express their opinions as eloquantly as others, people who may not be able to express their frustration in a calm, articulating, and constructive way. Removing some of the remarks is sometimes necessary for a better community, but this should not be done assuming the intent of those participants, and we should not lable them as "trolls", "shills", "bots" or other things just because they may have a different opinion that is expressed in an undesirable way. |
This comment was marked as off-topic.
This comment was marked as off-topic.
|
Good thing Github now allows people to hide comments rather than deleting them, so going forward we'll be able to benefit from the increased transparency and when actual troll posts are hidden people won't think the moderator team was incorrect in that decision. |
This comment has been minimized.
This comment has been minimized.
|
Please direct comments about moderation to the moderators or to new forum threads. |
Manishearth commentedApr 30, 2017
@ashleygwilliams mentioned this in her talk today;
#[allow(bad_style)]is a rather rebuke-y shame-y annotation on code.While we do want people to use proper style, it's a useful tool whilst learning to be able to turn off all the extra friction that you deal with that you don't have to. Let's be nicer about it; could we rename this to
nonstandard_styleand keepbad_styleas a backcompat alias?Unsure if this requires an RFC.