Sjmarf@sh.itjust.works to Programming Humor@lemmy.worldEnglish · 8 days agoCompareBooleanssh.itjust.worksimagemessage-square90fedilinkarrow-up11arrow-down10
arrow-up11arrow-down1imageCompareBooleanssh.itjust.worksSjmarf@sh.itjust.works to Programming Humor@lemmy.worldEnglish · 8 days agomessage-square90fedilink
minus-squareidunnololz@lemmy.worldlinkfedilinkEnglisharrow-up0·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.