Re: "continue/next" for "loop"

From: Preben Randhol (randhol+valid_for_reply_from_news_at_pvv.org)
Date: 11/03/03


Date: Mon, 3 Nov 2003 14:23:03 +0000 (UTC)

On 2003-11-03, christoph.grein@eurocopter.com <christoph.grein@eurocopter.com> wrote:

> Really, Lutz, I do not see why you by any force would like a solution
> without goto. It's the most appropriate solution in this case!
>
> The goto solution is better understandable than the boolean condition
> one. And it's simpler. Has anyone noticed that More_Statments are
> missing in the non-goto solution?
>
> Why is the goto braindead? Your coding standards forbit it? I hate
> those silly standards which forbid the most natural solution.

Links on this: (Ada, goto and state machine)

<URL: http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&frame=right&th=2e40522bae321cd3&seekm=yeung-ya02408000R0907970151100001%40news.apple.com#link1>

<URL: http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&frame=right&rnum=1&thl=0,1962504160,1962489216,1962271017,1962126670,1961964531,1961870021,1961870001,1961823517,1961823513,1961823498,1961752985&seekm=3m0nv5%2467l%40theopolis.orl.mmc.com#link1>

<URL: http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&frame=right&rnum=1&thl=0,1859794614,1859987362,1859947797,1859825550,1859773407,1858986694,1859689585,1858790444,1858650901,1857956692,1857898236&seekm=dewar.866134855%40merv#link1>

<URL: http://groups.google.com/groups?hl=en&lr=&ie=UTF-8&frame=right&th=6ab044fa0a1401a2&seekm=dewar.866287533%40merv#link1>

Preben

-- 
"Saving keystrokes is the job of the text editor, not the programming
 language."


Relevant Pages

  • Re: Horror! Using goto statement in finite state machines?
    ... everyone plus their granmother is constantly cursing at the ... goto statement, accusing it of being some sort of spawn of satan. ... concerns about the ability to debug the running state machine ... on a team that worked on a large complex state machine. ...
    (comp.lang.c)
  • Re: Horror! Using goto statement in finite state machines?
    ... goto statement, accusing it of being some sort of spawn of satan. ... An if, if/else, or switch statement corresponds to making ... A finite state machine, though, is the exception to this (and the only ... and a switch statement within a loop. ...
    (comp.lang.c)
  • Re: GOTO (was Re: Appeal for python developers)
    ... way of justifying goto in the language, as your program doesn't have a split ... between abstract state machine and real program anymore (which I think should ... Reading the state machine in the way presented above isn't any harder in my ...
    (comp.lang.python)
  • Re: Horror! Using goto statement in finite state machines?
    ... finite state machine" was code simplicity to write, read, debug, modify. ... on a team that worked on a large complex state machine. ... Similarly a simple approach with switch is: ... I know some people do not like the introduction of a state variable, but others do not like the use of goto. ...
    (comp.lang.c)
  • Re: Help required
    ... that indiscriminate use of goto can drastically reduce the readability of code. ... an example would be where there is specific cleanup tasks before a function returns. ... Maintain a flag that means "cleanup required". ... Using a state machine allows all the error handling to be put in one place. ...
    (comp.arch.embedded)