[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Re[2]: why no "continue" statement for loops?
- From: Enrico Colombini <erix@...>
- Date: Tue, 24 Jun 2003 10:01:44 +0200
On Monday 23 June 2003 22:32, Tuomo Valkonen wrote:
> Exactly these same arguments can be used to justify 'goto' and 'goto'
> actually is a very intuitively clear construct while I wouldn't say the
> same of whatever [N]. Numerical levels have an awful kludgy feel to them;
> labelled break/continue would be cleaner, but I still don't like them.
>
> Maybe people should just organize their code better?
You have my sympathy. I've been programming in C for 20 years without ever
using "break" (except in "switch", of course) or "continue"... despite coming
from non-structured BASIC. I find readability and ease of maintenance much
more important than saving a few cycles, or a few minutes of coding time.
Enrico