Even for the binary and &
there is a shorthand operator &=
.
So, why did the developers decide against something like a &&= b
which would do a logical and assignment?
It would do the same like for example the +=
operator (a += b
) would do to a = a + b
, shortening the expression.