On 6/13/2014 10:03 AM, H. S. Teoh via Digitalmars-d wrote:
FWIW, I also see `for(;;)` as far better than `while(true)`. I like to
read `(;;)` as "ever", so it literally reads "forever { ... }". :-) (In
fact, in C/C++, you *could* #define ever (;;), then you can actually
write "for ever". (Un)fortunately, in D this is not possible.)

Really, guys, the correct way to write an infinite loop is:

 Loop:
   ... statements ...
   goto Loop;

None of this candy-cane sugary stuff.

Reply via email to