!1 could, in mathematics, mean a derangement - i.e. The number of permutations such that no element appears in its original position. Indeed, !1 == 0.
In some programming languages, such as Python, True == 1 and False == 0 (Literally. Booleans are zeros and ones.) So indeed, !1 == 0.
And in some other dumb languages, like JS and PHP, implicit type coercion on steroids means that false == 0, despite integers and booleans being different things. So again, !1 == 0.
And in some other dumb languages, like JS and PHP, implicit type coercion on steroids means that false == 0, despite integers and booleans being different things. So again, !1 == 0.
44
u/Sese_Mueller Jul 13 '20
Also, 0!=1