OT: for (;;) {} vs while (true) {}

Claude via Digitalmars-d digitalmars-d at puremagic.com
Fri Nov 25 03:56:59 PST 2016


Sorry, I sent my post before finishing it, so...

It's in same vein as using:

if (cond)
{
   singleStatement;
}

instead of:

if (cond)
   singleStatement;

Because, you can more easily insert statements within the block 
(without having to navigate to different to insert the brackets).



More information about the Digitalmars-d mailing list