boolean expressions, why just two terms?
- by Ed Guiness
Given that it's valid to write
a = b = c = 2;
It would also be nice, rather than
bool allTwo = a == 2 && b == 2 && c == 2;
to instead write
bool allTwo = a == b == c == 2;
But I can't.
Is there a language-design reason for this?