"goto" in Chinese (Simplified)
goto(编程指令)
Definition
在编程中,'goto' 是一种指令,使程序跳转到代码的其他部分,跳过正常的执行顺序。
Usage Notes (Chinese (Simplified))
现代编程中 'goto' 被认为过时且有风险,因为可能导致代码难以理解(“意大利面代码”)。主要在教学或老旧语言中用。
Examples
The old BASIC language uses goto to move to a different line.
旧版 BASIC 语言使用 **goto** 跳转到另一行。
You should avoid using goto in your code.
你应该避免在代码中使用 **goto**。
Some early programming books taught beginners to use goto.
一些早期的编程书教初学者用 **goto**。
When I see goto in code, I know it’s probably old school.
我在代码里看到 **goto** 就知道那很老派。
Using goto can make debugging a real nightmare.
使用 **goto** 会让调试变得十分痛苦。
There are better ways than goto to control a program’s flow these days.
现在比起 **goto**,有更好的方法来控制程序流程。