| | |  | 3. Everything / Languages & Linguistics / Languages / Computer Languages 3. Everything / Maths, Science & Technology / Computers / Computer Languages and Programming
The GOTO Statement |  |
GOTO is a statement in some computer languages with which the order of execution of a program can be controlled. In short, GOTO tells the program to continue its execution not at the next statement as usual but at another statement.
The use of GOTO as a statement in programming languages such as BASIC, COBOL and others, has become a religious issue. Newbie programmers in the aforementioned languages are likely to use GOTO statements in large quantities, resulting in 'spaghetti' code that nobody, even the author, could ever follow or maintain. Computer scientists in general detest the use of GOTO; see Edsger W Dijkstra's 1968 note 'GOTO Statement Considered Harmful' (this note, among other publications, started the 'structured programming' holy wars). It must be stated, however, that the GOTO statement is at times very useful to get around the lack of a better structure in the language, for certain types of loops for instance, and could also be essential for error trapping. Amusingly, program code completely without GOTOs, sufficient size and complexity provided, is equally hard to maintain, regardless which programming language is used.
 | | People have been talking about this Guide Entry. Here are the most recent Conversations: |
In some languages, such as BASIC & Qbasic...
(Last Posting: Jun 4, 2005)
A proper use of GOTO
(Last Posting: Sep 8, 2003)
sometimes usefull
(Last Posting: Jun 21, 2002)
Updated 10 August, 2001
(Last Posting: Aug 10, 2001)
Real Programmers
(Last Posting: Jul 19, 2000)
| The ONE proper use of GOTO
(Last Posting: Apr 27, 2005)
The h2g2 association for the abolition of gotos...
(Last Posting: Jun 3, 2003)
Use them sensibly
(Last Posting: Sep 7, 2001)
related pages
(Last Posting: Apr 3, 2001)
"There I was..." -- stories of GOTO
(Last Posting: Jul 19, 2000)
|
|
| 
 |  |  |  | Entry Data Entry ID:
A354629 (Edited)
Written and Researched by: SchrEck Inc.
Edited by: Alaska
Date: 18
July
2000Please note that the BBC is not responsible for the content of any external sites listed.
Most of the content on this site is created by h2g2's Researchers, who are members of the public.
The views expressed are theirs and unless specifically stated are not those of the BBC. The BBC
is not responsible for the content of any external sites referenced. In the event that you consider anything
on this page to be in breach of the site's House Rules,
please click here to alert our Moderation Team. For any other comments, please start a Conversation below.
|
| |  |  |  |
|