More Clang diagnostic

Michel Fortin michel.fortin at michelf.com
Mon Oct 25 19:22:10 PDT 2010


On 2010-10-25 21:57:54 -0400, Walter Bright <newshound2 at digitalmars.com> said:

> bearophile wrote:
>> Walter:
>> 
>>> It's the very next token. There's nothing wrong with the message.
>> 
>> In that case I prefer the error message to refer to the line where the
>> semicolon is absent. I may ask a poll to other D users to see if they agree
>> with me or not on this.
> 
> It's of very questionable value when you consider that D is not a line 
> oriented language at all. There is no correct placement of ; in a 
> sequence of whitespace.

It's much faster to fix a problem when the IDE sends you right where 
you need to type.

There might not be a "right" place to type that semicolon, but it's not 
hard to anticipate that 99.999% of the time (if not more) right next to 
the previous token will be the right place for missing terminators and 
separators.

-- 
Michel Fortin
michel.fortin at michelf.com
http://michelf.com/



More information about the Digitalmars-d mailing list