Sjmarf@sh.itjust.works to Programming Humor@lemmy.worldEnglish · 19 days agoCompareBooleanssh.itjust.worksimagemessage-square97fedilinkarrow-up1499arrow-down18
arrow-up1491arrow-down1imageCompareBooleanssh.itjust.worksSjmarf@sh.itjust.works to Programming Humor@lemmy.worldEnglish · 19 days agomessage-square97fedilink
minus-squareidunnololz@lemmy.worldlinkfedilinkEnglisharrow-up11·18 days 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.