Should we deprecate comma?

Daniel Murphy yebbliesnospam at gmail.com
Tue Mar 25 09:14:26 PDT 2014


"Marc Schütz" " wrote in message 
news:ljmioogmqpvipifrhsub at forum.dlang.org...

> What is it supposed to do? Do you want to check that s is at least 1 
> character long? Otherwise it's a NOP, AFAICS.

It was supposed to check if the first character was not '/', but for some 
reason it was always taking the if branch.

A similar one is
while (x);
    doSomething();

Which is nearly impossible to see, and I do all the time by accident. 
Thankfully the compiler catches that one for us. 



More information about the Digitalmars-d mailing list