This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: [RFC/PATCH] Standardize on "for (;;)" for unbounded loops
- From: kenner at vlsi1 dot ultra dot nyu dot edu (Richard Kenner)
- To: dnovillo at redhat dot com
- Cc: gcc-patches at gcc dot gnu dot org, roger at eyesopen dot com
- Date: Mon, 06 Nov 2006 17:37:05 EST
- Subject: Re: [RFC/PATCH] Standardize on "for (;;)" for unbounded loops
- References: <Pine.LNX.4.44.0610291030390.5133-100000@www.eyesopen.com> <454FAC15.70506@redhat.com>
> > [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.