You must log in or register to comment.
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.
commenting out the whole block
var foo is declared but not used
is such a pain in my asshole when doing this.