On Tue, Mar 15, 2005 at 12:47:23PM +1100, Nick Piggin wrote: > Matt Mackall wrote: > > >>+ for (;;) { > > > >while (1) > > I always thought for (;;) was preferred. Or at least acceptable?
The for (;;) form has always struck me as needlessly clever and I've known it to puzzle coworkers. I try to make my for loops fall into the mold of simple initialize/test/advance. But no, I'm not aware of any LKML concensus opinion on this particular point. The assignment-in-if problem is a bit more serious as it exacerbates the jammed-up-against-the-right-margin formatting issues. -- Mathematics is the supreme nostalgia of our time. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/