Shiiieeettt....... - Lemmy.World

I feel like modern compilers would turn their nose up at that shit. β€œDead code? Ewww! No way I’m letting that into my syntax tree!”
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.

commenting out the whole block

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