1. 24
  1.  

  2. 13

    This is a nice advertisement for deriving standard methods like comparisons, in languages that support that.

    1. 2

      In generic Go, you can use < on any of the numeric types, but it’s not defined on structs, so it wouldn’t be defined for the example.

    2. 9

      Tl;dr they had accidentally used <= instead of < in a comparison function for a sort, causing a lot of unnecessary swaps of equal values.

      1. 1

        …and it wasn’t sync -> async