-
Notifications
You must be signed in to change notification settings - Fork 6.8k
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
doc: coding_guidelines: replace a whitelist replacement #33228
doc: coding_guidelines: replace a whitelist replacement #33228
Conversation
Nothing in the tree is using the "passlist" term in the "blocklist / passlist" pair. However, west is using "blocklist / allowlist" already in a released version. Recommend blocklist/allowlist instead of blocklist/passlist to avoid having to add yet another possible replacement, since nothing is using passlist right now. Note that blocklist/allowlist is in widespread use throughout many projects, including Chrome. Signed-off-by: Martí Bolívar <[email protected]>
aa012e0
to
03ea73f
Compare
Another reason to prefer |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not only is allowlist
more understandable, but as @mbolivar-nordic says, we are already exposing our users to this particular term in west.
Since I started this firestorm in #29498 (review) I'm just going to respond to #29498 (comment) here then move on:
That was not intended as a statement of policy; it was an insufficiently clear statement of fact: the term
That's fine. My position was we had three perfectly adequate names, where the positive and negative verbs are natural antonyms: "allow/deny", "pass/block", and "accept/reject". I don't find "allow/block" to be a natural pairing. I also am tired of all the bikeshed discussions, and figured that since for this case we actually had a documented set of recommended names it was reasonable to propose sticking with them rather than introducing yet another arguably gratuitous variation. I don't like changing the list to replace pass/block with allow/block, but if that's how people want to go it's fine. But I don't feel any professional or moral obligation to approve such a change. |
Given that nobody is using 'passlist', I think that is rather precisely what this PR is doing. |
Nothing in the tree is using the "passlist" term in the "blocklist /
passlist" pair. However, west is using "blocklist / allowlist" already in a
released version.
Recommend blocklist/allowlist instead of blocklist/passlist to avoid
having to add yet another possible replacement, since nothing is using
passlist right now.
Note that blocklist/allowlist is in widespread use throughout many
projects, including Chrome.
Signed-off-by: Martí Bolívar [email protected]