Skip to content

Comment on What real life bad habits has programming given you?parent

Comments

I find it's most often people say "or" when they mean xor, and "and/or" when they mean or.

So perhaps we should start saying either "or" or "ior" (inexclusive or).

The "and/or" thing actually sort of makes sense if you take "or" to mean "xor", since (A XOR B) OR (A AND B) equals (A OR B)

So, slash is really 'or'?

Oh, my head.

    english   logic
    -------   -----
    and       AND
    or        XOR
    /         OR
Actually, since (A XOR B) and (A AND B) are mutually exclusive, (A XOR B) XOR (A AND B) also equals (A OR B), so "/" could be "XOR" too.
AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.