This doesn't help with unused variables, which comes up just as often when doing the same thing (coding piecemeal, testing if it compiles, etc.)
var x int
_ = x
Mildly annoying, but it avoids unused variables in any code which compiles, and is a helpful reminder of "I was going to do something with this value".It was an interesting experiment to make these things errors only, but it's clear that it has failed.
The problem is the S/N of warnings. Our programmer removed a warning so that real warnings wouldn't drown in a see of false warnings.
The question is then, can we have our cake and eat it too? We don't want to completely forget about low risk warnings, we just almost completely. Maybe we could have some kind of exponential backoff when you ignore warnings?