foreach
Meta via Digitalmars-d
digitalmars-d at puremagic.com
Fri Jun 13 10:39:42 PDT 2014
On Friday, 13 June 2014 at 17:05:26 UTC, H. S. Teoh via
Digitalmars-d wrote:
> I don't like arbitrary constants like the `true` in while(true)
> -- it kinda goes against the grain, that "while" implies there
> is a stopping point, but sticking true in there contradicts
> this notion and is
> therefore dissonant with the concept of "while".
while (1 == 1)
{
}
Is a better indicator of an infinite loop than for(;;) unless
you're really bad at math.
More information about the Digitalmars-d
mailing list