Sjmarf@sh.itjust.works to Programming Humor@lemmy.worldEnglish · 17 days agoCompareBooleanssh.itjust.worksimagemessage-square91fedilinkarrow-up1494arrow-down15
arrow-up1489arrow-down1imageCompareBooleanssh.itjust.worksSjmarf@sh.itjust.works to Programming Humor@lemmy.worldEnglish · 17 days agomessage-square91fedilink
minus-squareidunnololz@lemmy.worldlinkfedilinkEnglisharrow-up10·17 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.