Wish: Variable Not Used Warning

superdan super at dan.org
Wed Jul 9 13:46:25 PDT 2008


Steven Schveighoffer Wrote:

> "Walter Bright" wrote
> > The reason for treating warnings as errors when warnings are enabled is so 
> > that, for a long build, they don't scroll up and off your screen and go 
> > unnoticed.
> 
> I've been following this thread, and I'm not really sure which side of the 
> issue I'm on, but this, sir, is one of the worst explanations for a feature. 
> Ever heard of 'less'?  or 'more' on Windows?  Maybe piping to a file?  Maybe 
> using an IDE that stores all the warnings/errors for you?
> 
> Please stop saving poor Mr. ignorant programmer from himself.  Education is 
> the key to solving this problem, not catering to the ignorance.
> 
> Sorry for the harshness, but seriously!

in c++ this kind of argument that contains "it's an issue of education and shit" in it has been used for many years. after a lot of experience in the field nowadays everyone silently agrees that that argument is useless. folks on comp.lang.c++ start mocking you if u bring that argument up.

i am 110% on walter's side on this shit. there should be no warnings and shit. only errors. it is not catering to the ignorant. it is a matter of a properly defined language. 

a lint tool should not be folded into d. such a tool could e.g. follow pointers, do virtual execution, and some other weird shit. it could run for hours and produce output that takes an expert to interpret. that kind of shit does not belong in the compiler.



More information about the Digitalmars-d mailing list