|Ada 95 Quality and Style Guide||Chapter 5|
5.6.7 Goto Statements
Do not use goto statements.
A goto statement is an unstructured change in the control flow. Worse, the label does not require an indicator of where the corresponding goto statement(s) are. This makes code unreadable and makes its correct execution suspect.
Other languages use goto statements to implement loop exits and exception handling. Ada's support of these constructs makes the goto statement extremely rare.
If you should ever use a goto statement, highlight both it and the label with blank space. Indicate at the label where the corresponding goto statement(s) may be found.
|< Previous Page||Search||Contents||Index||Next Page >|