This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC/PATCH] Standardize on "for (;;)" for unbounded loops


> > [2]	do
> > 	  ...
> > 	while (1);

> I don't care strongly for any of these forms.  They all look equally 
> intuitive to me.  I don't think it's worth forcing one over the other, 
> actually.  But if there's consensus over one particular form, I'll be 
> happy to follow it.

I don't like [2] because it's not obvious until the end of the loop
(which may be many lines down) that it's an infinite loop, but have no
preferences about the other ones.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]