Python Forum
Is there a goto like there is in BASIC?
Thread Rating:
  • 1 Vote(s) - 3 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Is there a goto like there is in BASIC?
#17
Here's an article from not that long ago detailing NASA's 10 programming rules for safety: http://www.rankred.com/nasa-coding-rules/

#1 is basically never use goto.
Quote:Rule No. 1 – Simple Control Flow
Write program with very simple control flow constructs – Do not use setjmp or longjmp constructs, goto statements, and direct or indirect recursion.

Reason: Simple control flow results in improved code clarity and stronger capabilities for verification. Without recursion, there will be no cyclic function call graph, and this proves that all executions that should be bounded are in fact bounded.
Reply


Messages In This Thread
RE: Is there a goto like there is in BASIC? - by nilamo - Apr-21-2017, 07:00 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  goto jmabrito 34 10,719 Feb-18-2021, 09:55 PM
Last Post: jmabrito
  How to make input goto a different line mxl671 2 2,523 Feb-04-2020, 07:12 PM
Last Post: Marbelous
  goto problem Skaperen 1 2,800 Jan-27-2018, 01:11 PM
Last Post: stranac
  Go up script/menu(a goto command) foxtreat 7 8,366 Apr-24-2017, 05:58 PM
Last Post: micseydel

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020