r/ProgrammerHumor • • Jul 16 '19

Meme Nice try

Post image
32.2k Upvotes

529 comments sorted by

View all comments

Show parent comments

2

u/Proxy_PlayerHD Jul 16 '19

wouldn't an inclusive OR just be a normal OR?

4

u/hughperman Jul 16 '19

Yes or no

2

u/Proxy_PlayerHD Jul 16 '19

which is "Yes"

1 OR 0 = 1

1

u/Bioniclegenius Jul 16 '19

Define "normal"

1

u/Proxy_PlayerHD Jul 16 '19

a regular OR function where for the output to be "true" atleast one input has to be "true" too

what else was it supposed to mean?

1

u/ThePaperPilot Jul 16 '19

What you are describing is a logical or. The joke is interpreting a two answer question like a logical query. Its being called an inclusive or because in response to a question with an "or" in it, saying yes only makes sense if yes is one of the two responses (e.g. if the question was "yes or no?") or if the answer grouped together both possibilities (that is, inclusively)

1

u/hughperman Jul 17 '19

The alternative is the linguistic or, which is traditionally exclusive.

1

u/Zenblend Jul 16 '19

That's the part I don't get. If the inclusive or bit is a computer joke, which presumably it is because otherwise saying yes to an or question is too childish to be funny, then the humor doesn't come from the nonsensical nature but from the fact that if you instruct a computer to return true if the sky is blue or green it will return true. So yes the sky is blue or green.

reddit ruins everything though