3 ms·
Because to the compiler errors are non negotiable. It doesn't understand what you are trying to say. Warning is the compiler saying that yes, he understands bu
by ranting-moth 3y ago
Because to the compiler errors are non negotiable. It doesn't understand what you are trying to say.
Warning is the compiler saying that yes, he understands but you're probably doing it wrong.
Unused variable. Yeah, legal. But why?
Most code that generates warnings can be written in a way so it doesn't. For the rare extreme nonsense warning, deactivate that warning with a comment and justification why to the next reader.
Because if you don't treat warnings like errors they become just a background din.
> ... isn't really coherent.
It's supported by many compilers and isn't a new idea.