4 ms·
As someone who has always despised the usage of "foo == true" and "foo == false" in predicates instead of just "foo" or "not foo" (or "!foo"), this pleases me.
by _0ffh 8mo ago
As someone who has always despised the usage of "foo == true" and "foo == false" in predicates instead of just "foo" or "not foo" (or "!foo"), this pleases me.
That practice misses the point of what it means for a value to be a boolean. (Even in C, if it's actually an int.)