diff --git a/guide/english/cplusplus/goto/index.md b/guide/english/cplusplus/goto/index.md index e43fdccdda..93fc00a136 100644 --- a/guide/english/cplusplus/goto/index.md +++ b/guide/english/cplusplus/goto/index.md @@ -1,10 +1,10 @@ --- -title: goto as a powerful utility +title: goto --- # Intro to the use of goto and labels -goto is one of the most powerful, yet highly underrated piece of logic in C++. Crazy amount of optimization can be achieved using goto, provided it is used properly. +goto is one of the most powerful pieces of logic in C/C++. Crazy amounts of optimization can be achieved using goto, provided it is used properly. **It is, however, discouraged for use in C++, since better ways of programming exist, and it [leads to spaghetti code](https://stackoverflow.com/questions/3517726/what-is-wrong-with-using-goto#3517746)** It does exactly what it is named as. It goes to the mentioned occurence of the next label, wherever may it be. # Terminology @@ -13,14 +13,26 @@ It does exactly what it is named as. It goes to the mentioned occurence of the n label - this can be named anything. # syntax -goto