Created
February 8, 2016 23:35
-
-
Save soulcutter/b50af8371e1ab88f56de to your computer and use it in GitHub Desktop.
What am I xorring?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ternary = foo ? !bar : bar | |
xor = !!(foo ^ bar) | |
neq = foo != bar | |
foo | bar | xor | ternary | neq | |
------------------------------------- | |
true | true | false | false | false | |
false | false | false | false | false | |
true | false | true | true | true | |
false | true | true | true | true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment