foreach
Walter Bright via Digitalmars-d
digitalmars-d at puremagic.com
Sat Jun 14 23:21:08 PDT 2014
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.
More information about the Digitalmars-d
mailing list