• lad@programming.dev
    link
    fedilink
    arrow-up
    13
    ·
    9 months ago

    I’d agree with the first half, but not the second. Sometimes mutability allows for more concise code, although in most cases it’s better to not mutate at all

    • 9point6@lemmy.world
      link
      fedilink
      arrow-up
      5
      arrow-down
      1
      ·
      9 months ago

      I feel like I should maybe have put a “probably” in there

      After all “there’s no silver bullet”, but in anything but a few edge cases, the rule applies, IMO