trivia: !!x|0 ^ !!y|0 is how you write logical xor in JS :P
-
-
pinging
@BrendanEich, other than historical precedent, is there a reason JS doesn't have logical xor? -
1/ C heritage as u say, but is NO ACCIDENT :-P. YAGNI. 2/ value-preserving ^^ hard. What is '' ^^ 0? '', 0, or false?
-
In JS I'd expect it to preserve value but not short-circuit (both values always needed)
-
so which value wins in the falsy result cases?
End of conversation
New conversation -
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.