• @bus_factor
    link
    2510 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.

    • @[email protected]
      link
      fedilink
      310 months ago

      commenting out the whole block

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