I have tried and errored a reasonable amount of times

Marko Rauhamaa marko at pacujo.net
Wed Sep 3 09:44:34 CEST 2014


Steven D'Aprano <steve at pearwood.info>:

> Who uses + for disjunction (∨ OR) and concatenation for conjunction (∧
> AND)? That's crazy notation.

That's the classic Boolean algebraic notation. In basic algebra, the two
interesting operations are "addition" and "multiplication". Boolean math
works like elementary arithmetics, with the exception that

   1 + 1 = 1

I'm guessing the modern symbols ∨ and ∧ were derived from the
set-theoretical analogues, ∪ and ∩, which were also formerly used for
the same purpose.


Marko



More information about the Python-list mailing list