Sjmarf@sh.itjust.works to Programming Humor@lemmy.worldEnglish · 8 months agoCompareBooleanssh.itjust.worksimagemessage-square79fedilinkarrow-up174arrow-down10
arrow-up174arrow-down1imageCompareBooleanssh.itjust.worksSjmarf@sh.itjust.works to Programming Humor@lemmy.worldEnglish · 8 months agomessage-square79fedilink
minus-squareidunnololz@lemmy.worldlinkfedilinkEnglisharrow-up7·8 months agoUsually comparison functions are supposed to return an integer and are usually useful for sorting. However this one returns a bool so it’s both useless and terribly named.
Usually comparison functions are supposed to return an integer and are usually useful for sorting. However this one returns a bool so it’s both useless and terribly named.