News for hackers. Stuff that matters.
Re:Google broke a conditional statement that verifies passwo... by Cthulhu_ on Friday July 23, 2021 @04:30AM (#27928497)
In other languages, booleans are their own values (iirc in C/C++ they're aliases for 0/not-0) for which the `&` operand is simply not implemented.

There's also linters and other quality control analyzers that will warn on a bitwise operator on booleans.

Re:Google broke a conditional statement that verifies passwo... by account42 on Friday July 23, 2021 @09:03AM (#27930173)
C++ has separate true and false values of type bool, but they are implicitly convertible to int.
Re:Google broke a conditional statement that verifies passwo... by jhasse on Friday July 23, 2021 @08:57AM (#27930123)
That's C, in C++ booleans have their own type, too (called bool).