• bus_factor@lemmy.world
      link
      fedilink
      arrow-up
      2
      ·
      9 months ago

      Golang won’t even compile with dead code. Unfortunately that’s too strict, you just end up commenting out the whole block instead. At least the commented out code is obvious in review, and some automated checks catch it if you have them.

      • ramjambamalam@lemmy.ca
        link
        fedilink
        arrow-up
        1
        ·
        9 months ago

        commenting out the whole block

        var foo is declared but not used is such a pain in my asshole when doing this.