7 Apr
2016
7 Apr
'16
4 p.m.
Ethan Furman <ethan@...> writes:
--> ~False -1 --> ~True -2
No. bool is a subclass of int, and changing that now would be a serious breach of backward-compatibility, not to mention breaking existing code for no good reason.
I get that "technically" it would be a backward incompatible change, but any code that relies on `~True == -2` has other problems than backward compatibility.