Google's Go & Exceptions

Don nospam at nospam.com
Wed Jan 27 01:42:20 PST 2010


Rainer Deyke wrote:
> Walter Bright wrote:
>> When it's convenient and easy to do the wrong thing, people will do it.
>> Even the ones who know better, and promise themselves they won't do it,
>> do it.
> 
> WRT warnings, DMD doesn't just make it convenient and easy to do the
> wrong thing, it /forces/ you to do the wrong thing.

Except that DMD doesn't really have any incorrect warnings any more.
The only time that you get a warning that isn't necessarily a bug in 
your code is with implicit conversions.
Once the range-tracking implicit conversion rules for arithmetic 
operations are fully implemented, all of the warnings could be turned 
into errors, and DMD could lose the -w switch.





More information about the Digitalmars-d mailing list