Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
coolq48267y@xxxx @irene
As Irene said, it heavily depends on context. Although I can't think of a scenario where you would actually mean both as well, without saying "X or Y or both".
XOR as OR sounds like a fair enough statement for most cases -
Well this is just incorrect. According to Boolean algebra, this is right, but not the English language.
-
xxxx6437y@BitFlipped I don't think the purpose of the tweet was to say that English speakers are "wrong". It's just an interesting distinction between how we can use the same word in two different ways. 😊
-
@xxxx There are many words like this, like "we" for example.
But I still disagree with the post. He is saying that the correct way to do this, in the English language, is say xor, which is wrong -
PeteDev687yI cant realy see a boolean operation in the question. It is more of a conditional branch isn't it?
-
elazar10307yDepending on the situation. But "either this or that" is likely to mean XOR, and even more so when "either" or "or" are slightly emphasized.
(note that 'or' above is logical OR) -
Shodan4987yIn most (programming) languages that I know, OR statements are evaluated sequentially, and the first condition to pass is the one that falls through, the rest might not even be checked.
This is not how most people I know would process a choice like this. They check if they want to do both, but end up in a deadlock until the criteria is tuned so that only one of the options is picked (assuming only one can be done).
Which choice gets picked matters, unlike an XOR where the only thing that matters is that one choice is true and the other is false. The output for the latter is the value of the operation, while for the former it is the argument itself.
The thing is that in English, 'or' already has an implied exclusive meaning to it, so it already is interpreted as a logical XOR of sorts by default. -
elazar10307yAlso, in many situations there is no difference between or and xor, since xorness is enforced by real world constraints (you can't be in two places at the same time).
-
Kuroraiko37yWhen I took a logic class in college, I was astonished to learn that “or” isn’t exclusive. Obviously that was prior to starting my CS major. lol
-
You are wrong. When talking about a requirement that is met by either X or Y, satisfying both X and Y would not necessarily mean that the requirement isn't met
-
Idk how others were taught about the distinction between XOR and OR in Boolean Algebra, but mine explicitly clarified, on the very first day it was introduced, not to think of OR as its English equivalent. Problem solved. :P
-
@elazar Incorrect. You can be two places at the same time. Take your wife makeup shopping some time. You can be in Ulta and hell at the exact same time.
We really need Hawking to study this "misery entanglement". -
My girlfriend actually used this for her advance... I had to go to the cinema after the restaurant, just because I hadn't used XOR while asking her.
-
Counter example:
"Many of you are good writers or singers"
Here it's not clear if no one of the persons this is directed at are both, good writers and singers.
A definitive XOR would require 'either...or':
"Many of you are either good writers or good singers."
Natural language isn't precise in that regard. -
@irene Yes. I sometimes wish we world just abolish all languages and replace them by one with clear syntax. Would make NLP so much easier!
But on the other hand: I like languages to much to give them up just for the sake of soaking with machines... -
@irene natural language processing benefits from language without ambiguities. ;)
-
@irene Nope. :D
But I was confused too, when I heard the acronym the first time. -
This is why I usually answer with "yes"... It's also just fun to watch people process.
-
@irene nah. I'm always up for both swimming and dancing. And at the same time, if possible 😂
-
olezhka25777y@irene I don't think russians say "or x, or y" though in a case a person says in this fashion it is 100% exclusive, I agree.
But I think in russian I tend to use this or that while picking/choosing between smth. Again, yes, that's not to say that the person helping me couldn't say "why not both?" - they could. But not in the majority of cases -
I think someone obviously implies doing one or the other when they ask "want to do x or y?". I agree with those who say it's contextual. "Want to dance or swim" is XORable but " Want to knock boots or partake in the Olympic games"... nobody is satisfying both of those simultaneously 😳 but my overall point is the meaning is to choose one exclusively unless you answer with "why not both?" *Mexican music plays*
😯😯😯
joke/meme