On 2/25/14, 3:07 PM, deadalnix wrote:
On Tuesday, 25 February 2014 at 12:58:03 UTC, bearophile wrote:
It should be other way around - remove all such arguable warnings
from compiler to dedicated lint tool and never add any single one to
What are the advantages and disadvantages of doing as you say?
Yes, it can be a separate module in the source code of the compiler.
The compiler is the only one that has most information to provide lint
If the lint has tests, if you change the compiler you immediately can
tell if the linter stopped working correctly or needs an update.
If it's separated then it's always the turtle chasing the rabbit.