-
-
Notifications
You must be signed in to change notification settings - Fork 248
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Replace use of whitelist with allowlist and blacklist with denylist #428
Comments
I don't see how whitelist and blacklist are unwelcoming terms as they are well-known technical terms. |
I think most of the discussion already happened here rails/rails#33677
I used the word unwelcoming specifically because it is in the CoC: Using welcoming and inclusive language I agree with you, but being well-known doesn't imply being correct. It's been used for a long time, most of us never payed attention to it, and it describes a lot o what is happening now outside of tech. And if it helps people in doubt, no opinion is already an opinion. It will stay the same. |
the origins of these terms are not rooted in racism. i'm generally against changing terminology based on this week's contextual use of them. "retarded" is another example - a perfectly valid term, both medically and in engineering. should it be scrubbed from future work because someone started using it disparagingly? this isn't the same as the washington redskins thing. anyways, that's my unsolicited $0.02. either way, allow/deny are both clear terms and aside from a BC perspective, i don't see an issue with this. there are other examples when the politically correct replacements are clearly worse, but that's not the case here. |
@leeoniya I'm not here to advocate to A or B, but your opinion doesn't match with historical research: https://jmla.pitt.edu/ojs/jmla/article/view/490 As cited before, it would have already saved us time:
|
https://en.wikipedia.org/wiki/Blacklisting#Origins_of_the_term hmm, its first known use does coincide with that time period. |
wholehearted +1000 |
I think that especially since this can be done with no breaking changes there's no reason not to use try and use less divisive terminology here. I think the proposed It's worth noting is that there is no "blacklist" feature/option in PurgeCSS currently, so we only really have to think of something for "whitelist". I've been thinking through different options and I think the one I like most is |
I will open an issue about what I have in mind for whitelisting in the future. But to summarize:
|
Progress tracked in #439 |
We can use better terminology and promote diversity.
As stated in the CODE_OF_CONDUCT:
Whitelists would become
allowlists
Blacklists would become
denylists
This is what I proposed for Tailwind CSS (tailwindlabs/tailwindcss#1868) to map to PurgeCSS' options:
whitelist
->allowlist
whitelistPatterns
->allowlistPatterns
whitelistPatternsChildren
->allowlistPatternsChildren
The unwelcoming terms could still be supported, but no more documented. It would not break any code already using it but would enforce better standards for future.
It has to start somewhere. Good documentation on our side would reduce the friction and send a message: we are doing our part.
I'm not familiar with the codebase, but would be willing to make these changes as in most of the cases it would be documentation and renaming (yes, I propose to also change internal code, but leave the minimum necessary to keep old properties working)
inspired by Rails: rails/rails#33677
The text was updated successfully, but these errors were encountered: