devilish666@lemmy.world to Programmer Humor@lemmy.ml · 9 months agoShiiieeettt.......lemmy.worldimagemessage-square28fedilinkarrow-up136arrow-down10
arrow-up136arrow-down1imageShiiieeettt.......lemmy.worlddevilish666@lemmy.world to Programmer Humor@lemmy.ml · 9 months agomessage-square28fedilink
minus-squareShortN0te@lemmy.mllinkfedilinkarrow-up3·9 months agoA lot of IDEs would probably throw a warning about unreachable code.
minus-squarebus_factor@lemmy.worldlinkfedilinkarrow-up2·9 months agoGolang 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-up1·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.
A lot of IDEs would probably throw a warning about unreachable code.
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.