Re: how to emulate goto.
From: Andrew McDonagh (news_at_andrewcdonagh.f2s.com)
Date: 02/03/05
- Next message: Ferenc Hechler: "Re: identifi class org.hsql.jdbcDriver"
- Previous message: Paul Chapman: "Re: All those constructors..."
- In reply to: Dimitri Maziuk: "Re: how to emulate goto."
- Next in thread: Dimitri Maziuk: "Re: how to emulate goto."
- Reply: Dimitri Maziuk: "Re: how to emulate goto."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 03 Feb 2005 20:31:13 +0000
Dimitri Maziuk wrote:
> Andrew McDonagh sez:
>
>>Dimitri Maziuk wrote:
>
> ....
>
>>>Meanwhile, goto changed its name to "continue break label" and
>>>everyone's using it in the happy ever after.
>>
>>yes, but 'continue break label' is not really a goto. It looks like one,
>>but it isn't.
>
>
> Riight. Looks like a duck, quacks like a duck (executes a jump
> to labelled instruction), must be a Belgian paratrooper.
>
take a look at the Thinking in Java book by Bruce Eckel
http://www.faqs.org/docs/think_java/TIJ305.htm#Heading3009
> I've seen enough crappy code without gotos and good code with
> gotos to know that the real problem is "programmers" who
> shouldn't be allowed within a nucular blast radius of a computer.
>
On this I completely agree. Most problems are down to inexperienced
developers rather than poor tools.
Having said that, if the tool makers find that certain things can be
improved to make them less likely to be abused by these developers, then
it may be worth it. This is the case with Java's break & continue, in
that they are 'like' a goto, but have tight constraints upon how and
when they can be used.
- Next message: Ferenc Hechler: "Re: identifi class org.hsql.jdbcDriver"
- Previous message: Paul Chapman: "Re: All those constructors..."
- In reply to: Dimitri Maziuk: "Re: how to emulate goto."
- Next in thread: Dimitri Maziuk: "Re: how to emulate goto."
- Reply: Dimitri Maziuk: "Re: how to emulate goto."
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|