This article is about the programming statement in high-level languages. For other uses, see Goto (disambiguation).
Goto (goto, GOTO, GO TO, GoTo, or other case combinations, depending on the programming language) is a statement found in many computer programming languages. It performs a one-way transfer of control to another line of code; in contrast a function call normally returns control. The jumped-to locations are usually identified using labels, though some languages use line numbers. At the machine code level, a goto is a form of branch or jump statement, in some cases combined with a stack adjustment. Many languages support the goto statement, and many do not (see § language support).
The structured program theorem proved that the goto statement is not necessary to write programs that can be expressed as flow charts; some combination of the three programming constructs of sequence, selection/choice, and repetition/iteration are sufficient for any computation that can be performed by a Turing machine, with the caveat that code duplication and additional variables may need to be introduced.[1]
The use of goto was formerly common, but since the advent of structured programming in the 1960s and 1970s, its use has declined significantly. It remains in use in certain common usage patterns, but alternatives are generally used if available. In the past, there was considerable debate in academia and industry on the merits of the use of goto statements. The primary criticism is that code that uses goto statements is harder to understand than alternative constructions. Debates over its (more limited) uses continue in academia and software industry circles.
Goto (goto, GOTO, GO TO, GoTo, or other case combinations, depending on the programming language) is a statement found in many computer programming languages...
Tadamasa Goto (後藤 忠政, Gotō Tadamasa, born September 16, 1943) is a retired yakuza. He was the founding head of the Goto-gumi, a Fujinomiya-based affiliate...
Maki Goto (後藤 真希, Gotō Maki, born September 23, 1985) is a Japanese singer, lyricist, and former actress. Born and raised in Edogawa, Tokyo, Goto began...
GoTo Meeting, previously known as GoToMeeting, is a web conferencing tool developed by GoTo. This software facilitates online meeting, desktop sharing...
Masanao Goto (後藤 昌直, Gotō Masanao, March 6, 1857 – July 9, 1908) was a Japanese leprologist. He was the son of first Shobun Gotō and was called the "second...
Ryu Goto (五嶋 龍, Gotō Ryū, born July 13, 1988) is an American concert violinist. Goto gained attention as a child prodigy, first performing at the age of...
Shigeyuki Goto (後藤 茂之, Gotō Shigeyuki, born December 9, 1955) is a Japanese politician serving in the House of Representatives. A member of the Liberal...
Keisuke Goto (後藤 啓介, Goto Keisuke, born 3 June 2005) is a Japanese professional footballer who plays as a forward for Belgian club RSCA Futures on loan...
Kenji Goto (後藤 健二, Gotō Kenji, 23 October 1967 – c. 31 January 2015) was a Japanese freelance video journalist covering wars and conflicts, refugees,...
Kyosuke Goto (後藤 京介, Goto Kyosuke, born July 29, 1992) is a Japanese football player. From 2015, Kyosuke Goto played Montenegrin First League club Mogren...
Hirooki Goto (後藤洋央紀, Gotō Hirooki, born June 25, 1979) is a Japanese professional wrestler. Since his debut, he has wrestled primarily for New Japan Pro-Wrestling...
Mai Goto (後藤 麻衣, Gotō Mai, born August 22, 1982) is a Japanese voice actress from Obihiro, Hokkaido, Japan. She is represented by Ken Production. 2003...
In scientific computing, GotoBLAS and GotoBLAS2 are open source implementations of the BLAS (Basic Linear Algebra Subprograms) API with many hand-crafted...
Risa Goto (後藤 理沙, Goto Risa, born June 18, 1983) is a former Japanese actress and gravure idol. She was born in Ukiha, Fukuoka Prefecture, Japan. She...
“Ben” Goto (五島 勉, Gotō Ben, 17 November 1929 – 16 June 2020) was a Japanese journalist and writer best known for his books on Nostradamus. Goto was born...
Kazushige Gotō (後藤和茂, Gotō Kazushige) is a software engineer specializing in high performance, hand-written, machine code. Goto was a research associate...
Jin Goto (後藤 仁, Gotō Jin, born 1968 in Hyōgo Prefecture) is a Japanese nihonga and picture book painter. He was born in Hyogo. His uncle is an artisan...
Eiichi Goto (後藤 英一, Gotō Eiichi, January 26, 1931 – June 12, 2005) was a Japanese computer scientist, the builder of one of the first general-purpose...