It has nothing to do with GCC, nothing with code quality, nothing with your contributions to the project, you don't say that in code, in code comments, on gcc mailing lists, anywhere gcc related.
But, because of the CoC ( https://gcc.gnu.org/conduct.html ), which says:
> This code of conduct applies to all spaces managed by the GCC project. This includes IRC, the mailing lists, the issue tracker, events, and any other forums created by the project team which the community uses for communication.
(this ^ part is ok, you should behave like a professional when dealing with stuff like this; general (non-gcc-related) politics or whatever non-gcc-related doesn't belong in GCC mailing lists)
> In addition, violations of this code outside these spaces may affect a person's ability to participate within them.
But this part changes everything, and makes CoCs like this one a bad thing.
Been on a (eg.) Trump rally in your free time, unrelated to anything GCC? Some overzelaous CoC enforcer bans you, and it's "totally fine", because the CoC allows this.
I'm completely happy and have spent my career working with people who's views don't always align with my own. If I have a religious co-worker who believes I will spend eternity burning in hell for my sexuality, it doesn't bother me in the slightest. They have a right to their view, I have a right to my view, and discussion of those views should be left outside of the workplace.
As long as this person treats me with respect, the fact they think I'll spend my non-existent afterlife in a non-existent hell has zero impact on my life.
On the other hand, if they spend their free time advocating for things which will have an impact on my life, such as sending me to prison for my sexuality, that's a very different story. It would be impossible for me to work with someone in a constructive way knowing they're pushing for a world without me in it.
If they're happy to throw me out of society and into prison, I'm happy to throw them out of my project.
It decidedly does not. To quote Kovarex, a Factorio dev: “If Stalin had a good writeup on programming, would linking that be dangerous?” [1]
I believe VERY strongly in separating the art from the artist.
[1]https://old.reddit.com/r/factorio/comments/o2ly6f/friday_fac...
And in regards to the dangerous part, there is a very real danger in giving people a platform and potentially promoting them. If a known white suprematist draws beautiful pictures, I wouldn't want them at my art gallery. Their world views are so strongly incompatible with mine that I don't want to help them become more popular, even by proxy.
Yes, strive towards that. If you can't keep your emotions in check, seek help with that instead of taking it out on people you are emotional about.
> And in regards to the dangerous part, there is a very real danger in giving people a platform and potentially promoting them.
Deplatforming based on feelings and especially the normalization of that is a much much much bigger danger. Don't expect to always be on the good sides of those holding the power even if you are now.
> Their world views are so strongly incompatible with mine that I don't want to help them become more popular, even by proxy.
If their world views don't affect their contributions to the project then that's squarely a you problem.
Let's frame it in a more relatable context.
Your employer can fire you for violating the company code of conduct, despite your behaviour having absolutely nothing to do with the company or its business.
In particular, if you're in favor of both this CoC and of labor unions, then your beliefs are inconsistent, since one of the things labor unions do is try to prevent their members from being fired without legitimate, work-related reasons.
If anything this used to be much more common before the era of codes of conduct, when people were, for example, routinely fired when it was discovered that they were gay.
Instead of continuing this practice, we should work to stop it and restore the private sphere.
Do we really want to go back to those times?
vs.
How many people are fired for saying things that many trans people disagree with?
Not in EU.
Project owners could do this before the CoC was created, and even if the CoC explicitly disallowed it, the project owners could do it anyway. The existence of the CoC changes absolutely nothing about what the project owners can and cannot do.
https://news.ycombinator.com/item?id=36430649
This does highlight the point that diversity is to some extent a zero sum game. You can welcome trans people to your project, or transphobes, but not necessarily both.
(I am just using trans people as one of many possible examples.)
You don't need to "welcome" either. You just don't talk about that stuff because it has zero relevance to your project, unless you're trying to use it as a political statement (which technical projects shouldn't be at all.)
Unless it is somehow very relevant to the project, I just don't want to know about anybody's race, gender, genitals, or politics. All those things can be weaponized to become divisive. I just want to work together with other people who are passionate about great technology.
This ‘don’t ask don’t’ tell stuff is regressive, but in discussions like this it sometimes seems to devolve into pure nonsense. No human community functions as you're suggesting. The literal content of what’s being said is so crazy that the subtext is clear: “if you’re not cis, white and hetero, then keep quiet about it”.
The thought of the average person having sex is repulsive to me. I don't want to know anything at all about it, especially if they're into weird stuff, but even if not.
Most people feel this way. Why is it so hard to understand?
Left to their own devices, people will talk about things that aren’t directly related to the project. How would you propose to stop them if not by enforcing certain conduct rules? You’re effectively just advocating for a different code of conduct, whose ban on all political discussions could also be portrayed in a rather Orwellian light by people opposed to it.
(Replace Irish with gay, trans, republican, ...)
Replace Russia/Ukraine with your favorite contentious issue and you could potentially see communities splitting up over this.
It's not the issue itself, it's the intent. If the intent is exclusionary - if X did say Y should not exist - then there's negative, unwelcoming intent.
It's not actually as complicated as the anti-CoC crowd is trying to make it look. All CoC's should / could be summarized as "be nice", with the caveat that if you're not, you won't be treated nicely either. And even that's not the case, because nine times out of ten, you will be asked to change your behaviour and patiently explained why it's bad.
And most adults can accept that. They can accept that saying "X should not exist" is bad.
GP said that the behaviour outside of the workplace is not relevant to the workplace.
I would have expected from a highly technical community to implement measures based on facts and studies, not based on a hunch. Where are the studies showing the amount of discrimination before and after implementing a code of conduct in different projects?