News for hackers. Stuff that matters.
[dead]
Re:The Go Language was rid of blacklist/whitelist and master... by jhoechtl on Sunday June 07, 2020 @06:35AM (#23446315)
I think brainfuck has the keyword please. Now that sounds nice!
Re:The Go Language was rid of blacklist/whitelist and master... by luckylion on Sunday June 07, 2020 @06:56AM (#23446434)
DemocraticQL is needed. It's long overdue to "ELECT * FROM".
Re:The Go Language was rid of blacklist/whitelist and master... by japanoise on Sunday June 07, 2020 @06:38AM (#23446330)
You're thinking of INTERCAL: https://en.m.wikipedia.org/wiki/INTERCAL
Re:The Go Language was rid of blacklist/whitelist and master... by jhoechtl on Wednesday June 10, 2020 @03:02AM (#23474684)
You are right:

PLEASE GIVE UP

to terminate execution sounds overly polite to me :)

Re:The Go Language was rid of blacklist/whitelist and master... by codegladiator on Sunday June 07, 2020 @06:49AM (#23446394)
> with alternatives you can easily make errors in and which make understanding the code harder

blacklist/whitelist => blocklist/allowlist

how's that making the code harder to understand ? or errorprone ?

Re:The Go Language was rid of blacklist/whitelist and master... by rfoo on Sunday June 07, 2020 @07:00AM (#23446456)
Maybe because it is inappropriate to use blocklist/allowlist in all cases, so to replace blacklist/whitelist people have to come up with a few different words (blocklist, badlist, denylist, etc) and apply them accordingly. It is certainly pretty confusing to see similar concepts expressed in a few different words, I'd prefer an umbrella word in this case. Of course if we are going to say "blocklist is the word replacing blacklist and it'll go into textbook you don't have to think deeply about it just remember this is the word you must use in all cases" the problem would disappear, but I'm afraid we can't.

Master/Slave demonstrate this better. For example, in the context of pseudoterminals, primary/secondary is certainly not precise words to use, it is quite hard to come up with "obvious" words without re-educating everyone. (oh, and it's baked in the API name in various specifications, like "ptsname" => "pseudo terminal slave name")

Re:The Go Language was rid of blacklist/whitelist and master... by codegladiator on Sunday June 07, 2020 @07:08AM (#23446506)
The leader/follower for master/slave seems pretty clear, similarly for blocklist/allowlist. Your argument seems to be 'because we have been doing it like this' or 'has been used in so many places' which I don't agree with too much as a reason to keep using it.

This change seems to actually bring in better terms and clearly understandable.

Re:The Go Language was rid of blacklist/whitelist and master... by rfoo on Sunday June 07, 2020 @07:12AM (#23446540)
Sorry, but if you actually click into the link before arguing with me, you would see they replaced "master" and "slave" in pseudoterminal context with "tty" and "processTty", not leader/follower because their relationship are really not leader and follower.

https://go-review.googlesource.com/c/go/+/236857/5/src/os/si...

Re:The Go Language was rid of blacklist/whitelist and master... by codegladiator on Sunday June 07, 2020 @07:17AM (#23446561)
Fair enough. I did check the link but didn't see that one.
[dead]
Re:The Go Language was rid of blacklist/whitelist and master... by luckylion on Sunday June 07, 2020 @07:06AM (#23446494)
Does "blacklist" really have an extremely charged history? I've not found a source suggesting that. I've found sources saying that the term "black sheep" is racist, and I find that idea backwards. "Black sheep" did not become a term to point out individuals that strongly deviate from the norm because of Africans. They did so, because they were rare and stood out (just like people who strongly deviate from the norm), like black swans being very rare but possible.

I get the feeling that there's a lot of hysteria involved where "black" is now a taboo word and every usage of it is considered "because of racist motives".

Re:The Go Language was rid of blacklist/whitelist and master... by lowmagnet on Sunday June 07, 2020 @08:54AM (#23446997)
The use of blacklist has been mostly employment-related, and is unrelated to racial issues.

Consider why we think black=bad/sin, white=good/pure, however. These are arbitrary choices.

Re:The Go Language was rid of blacklist/whitelist and master... by luckylion on Sunday June 07, 2020 @10:40AM (#23447656)
> The use of blacklist has been mostly employment-related, and is unrelated to racial issues.

Exactly, but it's mentioned as being so.

> Consider why we think black=bad/sin, white=good/pure, however. These are arbitrary choices.

And they're not because of "omg black people". The concept is far older than the transatlantic slave trade and is mostly about opposites, because it's literally black and white. Not brown and grey/pink/reddish-depending-on-weather.

White skin tone isn't white, black skin tone isn't black. The use of black and white as polar opposites was not invented after the 16th century.