4 ms·
Interesting example, but then you're at risk of creating code paths that vary depending on whether boolean values are true, false, or other, which is contrary t
by getpost 12y ago
Interesting example, but then you're at risk of creating code paths that vary depending on whether boolean values are true, false, or other, which is contrary to the definition of a boolean value.
- asynchronous13 12y agoYou're right, but that is true because there is not a boolean type, not because of the form of the check. Either form has the same problem since an int is used in place of a true boolean (true | false | other), but I prefer the form that makes it more explicit and noticeable.