foreach

Timon Gehr via Digitalmars-d digitalmars-d at puremagic.com
Fri Jun 13 14:12:13 PDT 2014


On 06/13/2014 07:39 PM, Meta wrote:
> 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.

Why do you claim he is bad at math?


More information about the Digitalmars-d mailing list