#35649 - 2003-01-27 09:55 AM
Re: Continue and Break in FOR-NEXT loops
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
quote: it just means that you are too lame or lazy of coming out properly.
That's a pretty strong statement. Are you sure that people who code using "break" are lame and lazy?
We have had both "break" and "continue" in 'C' for as long as I can remember, and I consider myself and fellow 'C' coders to be diligent and professional.
"Break" and "continue" are language constructs which simplify code and make it execute faster. They formalise and standardise process control which makes the understanding and maintenence of the code simpler.
We don't need FOR/NEXT, WHILE/LOOP, or DO/UNTIL control structures - the processing can be emulated perfectly well with a couple of variables and GOTO, but who wants to write kludgy ugly code when there is a better alternative?
|
|
Top
|
|
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 962 anonymous users online.
|
|
|