Skip to main content
goto

goto

1 8.7
A programming instruction that makes the program run from a different line
  • other
  • Specialized
: goto
  • Many programmers avoid using the goto command because it can make code difficult to follow.

Examples

  • Some modern languages do not include the goto statement to encourage better coding practices.

  • You can use goto to jump to a specific line.

  • The old programming manual explains how to use goto to jump between different parts of the code.

  • The goto command is often criticized.

  • Many programmers avoid using the goto command because it can make code difficult to follow.

  • The old programming manual explains how to use goto to jump between different parts of the code.

  • Some modern languages do not include the goto statement to encourage better coding practices.

Surface Forms

goto main

Morphology

goto = go (transparent) = to + go

Same as sense 1: the command is a concatenated form of 'go' + 'to' and directly denotes jumping to a target location. [Postprocessing: moved 'to' from base_words to prefix]

Etymology

Goto comes from the plain words go to, meaning 'go to' somewhere, and early programming languages wrote them as one word. So in code it instructs the program to 'jump' to a different part of the program.