3 ms·
The table shows that (! boolExp1) || (! boolExp2) is equivalent to the simplified version: ! (boolExp1 && boolExp2) I read the first one as, "Either of thes
by jancsika 9y ago
The table shows that
(! boolExp1) || (! boolExp2)
is equivalent to the simplified version:
! (boolExp1 && boolExp2)
I read the first one as, "Either of these bools are false." and the second as, "Not (true) that both of these bools are true." Thus in a conditional I more quickly comprehend the first.
- userbinator 9y agoThat's basic DeMorgan. I think it really depends on the context, i.e. how boolExp1 and boolExp2 are named. Too many ! can sometimes make the meaning hard to comprehend.