Why One Ampersand Instead of Two Is a Real Bug
Security & Identity

Why One Ampersand Instead of Two Is a Real Bug

Subtitle: Same look. Different job.

Use it when - Logical AND: guards, branches, early exit

Use it when - Bitwise AND: permission masks, device flags

Sticky note - Common beginner mistake:

Trusting the compiler to catch it. Both forms are legal and both give a usable condition, so it compiles and ships. Only a side effect on the right side reveals the slip.