2 ms·
> ‘&’ doesn’t short circuit Is this always true? I’ve experimented with this optimisation before but backed away from using it in production because it felt if
by secondcoming 3y ago
> ‘&’ doesn’t short circuit
Is this always true? I’ve experimented with this optimisation before but backed away from using it in production because it felt iffy to do. The codegen was far better though
- Izkata 3y agoSingle & (and single | for "or") are bitwise and/or, not logical and/or. They have to evaluate both sides to be able to return a result. For example: 1100 & 0101 -> 0100 1100 | 0101 -> 1101