If we could travel back in time and rethink Java, C#, and C++, what logical operators would you prefer?
If bools are separated from integers, then you could use a*b, a+b, and a-b for and, or, not. Then you'd have to parenthesize (a+b<c) * (b<a+c) and it might be visually confused with arithmetic.
-
-
It might be confused, as overloaded operators might in other cases as well, e.g. matrices * which is non commutative: You need to know it's matrices to not miss-refactor your code. The - can be used to selectively unset bits in your bool32. I don't understand what the < should do
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.