Hacker News new | ask | show | jobs
by linuxrebe1 2018 days ago
Short would be, 'and' implies, coincidence, not causality. 'Or' implies choice. If-then implies causality ("If my pants are dirty, then they need to be cleaned")

The big difference I see is with 'OR' in programing the options are exclusive. Ex: "Are you tired or hungry" The answer is yes if you are tired. Yes if you are hungry, Yes if you are both. No if you are neither. This is natural English. In programming if you are both. The answer is No.(False)

1 comments

Isn't OR in most languages non exclusive? If you want exclusive OR you use XOR.