I break for(;;) loops

Mike Zaleski mzal at pegasus.UUCP
Fri Oct 4 04:56:43 AEST 1985


> Some of us feel the same about breaks as we do about gotos. I won't use
> it, or continue either, and I won't let anyone in my shop use it. It is
> just a goto with an implicit label, and destroys the ability to
> determine program flow from the FORM of the source...

I guess this means you don't use the switch statement either.
Not that you can't live without it, but it can be useful at times.
Without a break, a switch statement is kind of unwieldly.

-- Mike^Z   Zaleski at Rutgers   [ allegra!, ihnp4! ] pegasus!mzal



More information about the Comp.lang.c mailing list