DMD 0.148 release
Bruno Medeiros
daiphoenixNO at SPAMlycos.com
Tue Feb 28 06:51:57 PST 2006
Walter Bright wrote:
> "Derek Parnell" <derek at psych.ward> wrote in message
> news:14g4upyin8106$.uuzir980l0jb.dlg at 40tude.net...
>> Agreed that the 'while(1)' idiom is not going anywhere, but Walter, which
>> would *you* write using D nowadays?
>>
>> while(1) ...
>>
>> or
>>
>> while(true) ...
>>
>> And why would you choose one form over the other?
>
> They are both equivalent. There is no technical, usability, portability,
> efficiency, or aesthetic advantage to one form over the other. I'd likely
> use the former simply out of habit and because it is shorter. As far as I'm
As for the usability/aesthetic advantage, it's arguable that there's no
difference. I prefer the 'true' version, as I find it more expressive,
even if the difference is not that big and while(1) doesn't bother me
that much.
> concerned, arguing about it is like arguing over if the { goes on the same
> line or the next :-)
>
Which although not a critical issue, still has some some things that
could be said about it. :D
--
Bruno Medeiros - CS/E student
"Certain aspects of D are a pathway to many abilities some consider to
be... unnatural."
More information about the Digitalmars-d-announce
mailing list