Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> "blacklist"

That has already happened in some places, though blacklist/whitelist are still the most common naming convention for that sort of thing.

Blocklist is actually a better name IMO, and I've seen it used in places, and an easy enough change. I don't have any examples I remember of what people might use instead of whitelist though, allowlist doesn't particularly trip of the tongue IMO.

Grandfathering is another common word that I've seen argued against because of its history.



> Blocklist is actually a better name IMO, and I've seen it used in places, and an easy enough change.

You should try to avoid using "Blocklist" in most code IMO, it's ambiguous in a number of contexts as the word block itself is ambiguous and can mean very multiple different things such as blockchain blocks or data/filesystem blocks which would be something very different from the intended definition of a disallow rule.


I would assume in most cases context would differentiate the meanings adequately unambiguously, especially in userland rather than when coding.

But you have a point, block is unhelpfully overloaded on the English language.


You mean just like how the context will disambiguate the meaning of "master"?


> Blocklist

IMHO it's definitely not. What I do with my blacklist might have nothing to do with blocking anything.


It doesn't have anything with the color black either.

What about "yeslist" and "nolist"? "Includelist" and "excludelist"?




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: