How about Go's... error on unused imports?
Lutger
lutger.blijdestijn at gmail.com
Fri Nov 13 16:29:32 PST 2009
Bill Baxter wrote:
> On Fri, Nov 13, 2009 at 10:28 AM, Lutger <lutger.blijdestijn at gmail.com>
> wrote:
>> Justin Johansson wrote:
>>
>>> No, sorry I am not informed on D's policy about warnings
>>
>> Exactly. Ever wondered why that is?
>>
>> The policy is: there are no warnings.
>
> Probably more clear to say "all warnings are treated as errors."
>
> --bb
Note there is no way to treat warnings as warnings, making those 'warnings'
just errors that can be turned on or off. Since there are no warnings to
begin with, there are no warnings to treat as errors.
I think that better reflects the idea that according to Walter, the concept
of a compiler warning is inherently broken and thus rejected. Your code
either compiles or not, which goes against the idea of what warnings are.
More information about the Digitalmars-d
mailing list