Re: Why is GOTO bad?
- From: "Stephen Howe" <sjhoweATdialDOTpipexDOTcom>
- Date: Fri, 18 Aug 2006 05:32:44 +0100
But I realise what you are saying: It is not extendable and a scheme with
BREAK label or BREAK n is more flexible working with _ALL_ types of loop.
Having said that, what real difference is there between "BREAK label" and
"GOTO label"? Nothing at all.
That's not true. With break label you can't accidentally jump inside
another loop, which is the reason goto is considered bad I believe (I'm no
computer scientist).
Good point. I forgot about that. Well all my uses of GOTO are to jump out,
never to jump in. It is always to escape something.
So in that sense, this use of GOTO is disciplined.
Stephen Howe
.
- References:
- Why is GOTO bad?
- From: Dale
- Re: Why is GOTO bad?
- From: Michael C
- Re: Why is GOTO bad?
- From: Stephen Howe
- Re: Why is GOTO bad?
- From: Michael C
- Re: Why is GOTO bad?
- From: Stephen Howe
- Re: Why is GOTO bad?
- From: Michael C
- Re: Why is GOTO bad?
- From: Stephen Howe
- Re: Why is GOTO bad?
- From: Michael C
- Why is GOTO bad?
- Prev by Date: Re: Using a field value as a variable name
- Next by Date: Re: How to stop a screensaver running
- Previous by thread: Re: Why is GOTO bad?
- Next by thread: Re: Why is GOTO bad?
- Index(es):
Relevant Pages
|