Semicolons: mostly unnecessary?

Lars T. Kyllingstad public at kyllingen.NOSPAMnet
Thu Oct 22 04:24:54 PDT 2009


AJ wrote:
>  Cons:
> 10. Allows one to write hard-to-see "do nothings" like: for(;;);


That's not allowed in D, for that exact reason. You have to write

   for (;;) { }

for a do-nothing loop.

-Lars



More information about the Digitalmars-d mailing list