Tiger_Man_〔he/him〕@lemmy.blahaj.zone to Programmer Humor@programming.dev · 19 天前that's truelemmy.blahaj.zoneimagemessage-square14fedilinkarrow-up1361arrow-down18
arrow-up1353arrow-down1imagethat's truelemmy.blahaj.zoneTiger_Man_〔he/him〕@lemmy.blahaj.zone to Programmer Humor@programming.dev · 19 天前message-square14fedilink
minus-squareTanoh@lemmy.worldlinkfedilinkarrow-up5·19 天前And 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·19 天前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.
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.