Tiger_Man_〔he/him〕 to Programmer Humor@programming.dev · 1 month agothat's trueimagemessage-square14linkfedilinkarrow-up1345
arrow-up1345imagethat's trueTiger_Man_〔he/him〕 to Programmer Humor@programming.dev · 1 month agomessage-square14linkfedilink
minus-squareTanoh@lemmy.worldlinkfedilinkarrow-up5·1 month agoAnd then there are things like strcmp() that uses 0 as true. At least it is for a good reason, but still confusing.
minus-squarertxn@lemmy.worldlinkfedilinkarrow-up7·1 month agoI don’t find it confusing at all. The function doesn’t test equivalence, and the return value is not meant to be a logical value.
And then there are things like strcmp() that uses 0 as true. At least it is for a good reason, but still confusing.
I don’t find it confusing at all. The function doesn’t test equivalence, and the return value is not meant to be a logical value.