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


Roger Sayle wrote on 10/29/06 12:54:

[1]	while (1)
	  ...;

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

[3]	for (;;)
	  ...;

[4]	while (true)
	  ...;

[5]	for ( ; ; )
	  ...;

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.


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