devilish666@lemmy.world to Programmer Humor@lemmy.ml · 1 年前Shiiieeettt.......lemmy.worldimagemessage-square85fedilinkarrow-up1985arrow-down119
arrow-up1966arrow-down1imageShiiieeettt.......lemmy.worlddevilish666@lemmy.world to Programmer Humor@lemmy.ml · 1 年前message-square85fedilink
minus-squarebus_factor@lemmy.worldlinkfedilinkarrow-up25·1 年前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.
minus-squareramjambamalam@lemmy.calinkfedilinkarrow-up3·1 年前 commenting out the whole block var foo is declared but not used is such a pain in my asshole when doing this.
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.
var foo is declared but not used
is such a pain in my asshole when doing this.