Sjmarf@sh.itjust.works to Programming Humor@lemmy.worldEnglish · 3 months agoCompareBooleanssh.itjust.worksexternal-linkmessage-square97fedilinkarrow-up1514arrow-down19
arrow-up1505arrow-down1external-linkCompareBooleanssh.itjust.worksSjmarf@sh.itjust.works to Programming Humor@lemmy.worldEnglish · 3 months agomessage-square97fedilink
minus-squareidunnololz@lemmy.worldlinkfedilinkEnglisharrow-up11·3 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.