• not_woody_shaw@lemmy.world
    link
    fedilink
    English
    arrow-up
    6
    ·
    9 hours ago

    That’s not even the worst part. What the fuck does a function named Compare_anything do? Does it return anything? It sounds like nothing but a side effect.

    • BatmanAoD@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      6 hours ago

      The unnecessary and confusing functions are horrible, yes, but I’d still say that the fact that they’re wrong is the “worst” part.

    • idunnololz@lemmy.world
      link
      fedilink
      English
      arrow-up
      4
      ·
      8 hours ago

      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.