Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
set marker goto marker??
#1
Has it ever been considered for python to allow for a goto command??
instead of line numbers, one could place named or numbered markers, and then the interpreter could goto those markers (just like BASIC can go to line numbers)

it's up to the individual to make sure that variables work, or other problems are dealt with.
if the user goes into a function at a point AFTER a variable is cleared or etc. then whatever is already in memory is used, an error if variable is declared before the marker and that line hasn't run yet, etc.

Python is here to be powerful, and enabling. sure, you can just keep making more functions, but as an interpreted language, why not allow for more diversity in flow?? first of all, there are plenty of users who could immediately expand on pythons style using their old childhood methods, games might get fun, and sometimes it would be MUCH LESS TYPING to just say goto and then point, click, and drop a marker
Reply


Messages In This Thread
set marker goto marker?? - by tsmspace - Jan-19-2019, 07:42 PM
RE: set marker goto marker?? - by perfringo - Jan-19-2019, 07:59 PM
RE: set marker goto marker?? - by tsmspace - Jan-19-2019, 08:35 PM
RE: set marker goto marker?? - by stullis - Jan-19-2019, 09:26 PM
RE: set marker goto marker?? - by Larz60+ - Jan-19-2019, 09:33 PM
RE: set marker goto marker?? - by ichabod801 - Jan-19-2019, 10:50 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  right now a goto would be useable Skaperen 9 3,652 Jul-26-2020, 12:25 AM
Last Post: Skaperen

Forum Jump:

User Panel Messages

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