Sjmarf@sh.itjust.works to Programming Humor@lemmy.worldEnglish · 7 days agoCompareBooleanssh.itjust.worksimagemessage-square96fedilinkarrow-up1513arrow-down19
arrow-up1504arrow-down1imageCompareBooleanssh.itjust.worksSjmarf@sh.itjust.works to Programming Humor@lemmy.worldEnglish · 7 days agomessage-square96fedilink
minus-squareidunnololz@lemmy.worldlinkfedilinkEnglisharrow-up11·7 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.