On 2/25/14, 3:07 PM, deadalnix wrote:
On Tuesday, 25 February 2014 at 12:58:03 UTC, bearophile wrote:
Dicebot:

It should be other way around - remove all such arguable warnings
from compiler to dedicated lint tool and never add any single one to
compiler.

What are the advantages and disadvantages of doing as you say?


http://en.wikipedia.org/wiki/Separation_of_concerns

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 errors.

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.

Reply via email to