Sjmarf@sh.itjust.works to Programming Humor@lemmy.worldEnglish · 27 days agoCompareBooleanssh.itjust.worksexternal-linkmessage-square91fedilinkarrow-up1508arrow-down19
arrow-up1499arrow-down1external-linkCompareBooleanssh.itjust.worksSjmarf@sh.itjust.works to Programming Humor@lemmy.worldEnglish · 27 days agomessage-square91fedilink
minus-squareidunnololz@lemmy.worldlinkfedilinkEnglisharrow-up11·26 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.