On Thu, Apr 28, 2016 at 08:01:02PM +0000, Seb via Digitalmars-d wrote: > On Thursday, 28 April 2016 at 18:53:21 UTC, Steven Schveighoffer wrote: > >grrr... and they removed C-style for statements (i.e. for(;;)) > > > >-Steve > > I agree with the other people on this list - cleaning up a language is > great and should be done. > `++` might be a bad example, but (empty) C-style for loops are!
I find for(;;) far more logical than other vacuous workarounds like while(1) or while(true). All you have to do is to blur your eyes and pretend the (;;) looks like an infinity symbol, and you can read it as "for-ever", a perfectly fitting name for the infinite loop. Of course, in an ideal world you'd have a "forever" keyword instead, but using up an entire keyword just for this one specific kind of loop seems a little excessive. So for(;;) seems like the perfect balance between idealism and practicality to me. Just my $0.02. T -- "No, John. I want formats that are actually useful, rather than over-featured megaliths that address all questions by piling on ridiculous internal links in forms which are hideously over-complex." -- Simon St. Laurent on xml-dev
