&
and |
).
The non-short-circuit versions are occasionally useful, but
their presence is often due to typos of the short-circuit forms ( &&
and ||
), and may lead to subtle bugs.
Example:
if (a & b) {}
After the quick-fix is applied:
if (a && b) {}