A Conversation for The GOTO Statement

sometimes usefull

Post 1

xyroth

It might be an idea to point out that this statement is usually used to get around the lack of a better structure in the language. It is also essential for error trapping.


sometimes usefull

Post 2

SchrEck Inc.

xyroth, thanks for your comments. This would surely be worth including, but I don't know at the moment how to get this done, as it is an edited entry which I couldn't change myself. I'll have to forward the desired changes to the in-house editors who would then update the entry.


sometimes usefull

Post 3

Bright Blue Shorts

I think the general rule was that GOTOs were ok as long as they stayed within the same section/procedure of code. As Xy suggests GOTOs are essential in certain languages due to lack of alternative syntax. COBOL is a fairly good example.


sometimes usefull

Post 4

SchrEck Inc.

Hi Xyroth, BBS,

you may have noticed that your proposed changes made it through Jimi X's Update headquarters and that the GOTO entry has been updated. smiley - smiley Thanks for your help!

SchrEck Inc.


sometimes usefull

Post 5

Researcher 196754

GOTOs are *not* essential for error trapping except in some primitive languages such as VB (I know, I know - it has quite powerful libraries, but the core language is primitive).

Look at Java, C++, PL/SQL and dozens of other high-level languages.


sometimes usefull

Post 6

xyroth

I would be interested to find out about a language that didn't need goto, as even versions of prolog and list have needed to add something similar to an unconditional jump.

ps thanks for telling me about the update. smiley - tongueout


Key: Complain about this post

Write an Entry

"The Hitchhiker's Guide to the Galaxy is a wholly remarkable book. It has been compiled and recompiled many times and under many different editorships. It contains contributions from countless numbers of travellers and researchers."

Write an entry
Read more