• dark_stang@beehaw.org
    link
    fedilink
    arrow-up
    29
    ·
    1 year ago

    x is used for map, filter, etc. a and b are used for sorts, comparisons and merges. y might be used if I’m doing multiple lambda expressions (but that means I’m in a bad place already). I have no idea why, but these are firm rules in my brain.

    • DogMuffins@discuss.tchncs.de
      link
      fedilink
      arrow-up
      11
      ·
      1 year ago

      I’ve gotten used to using the singular form as in…

      records.filter((record) => …)

      Not saying this way is better but it works for me.