Python Forum
adding goto to Python
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
adding goto to Python
#13
(Apr-13-2019, 10:32 PM)Larz60+ Wrote: I would consider any code containing a 'goto' .bad' code, but that's me
I have a lot of embedded code out there that runs perfectly fine without.

now days we understand that.

i would still keep goto in C but never add it to Python. i'm not so sure about Pike. i would consider restricting it in C and Pike to only go down, never go up. that or add raise, somehow. i remember reading such a suggestion (goto going up should be flagged as an error) for Fortran way back in a book published in the 1960s (read it in 1972). i have used goto as an error collector in a few C programs where i didn't want to make a 2nd level function. but raise eliminates any such need in Python. too bad C didn't come with a builtin standard equivalent to raise.
Tradition is peer pressure from dead people

What do you call someone who speaks three languages? Trilingual. Two languages? Bilingual. One language? American.
Reply


Messages In This Thread
adding goto to Python - by Skaperen - Apr-09-2019, 04:24 AM
RE: adding goto to Python - by perfringo - Apr-09-2019, 06:43 AM
RE: adding goto to Python - by DeaD_EyE - Apr-09-2019, 07:16 AM
RE: adding goto to Python - by ichabod801 - Apr-09-2019, 10:57 AM
RE: adding goto to Python - by scidam - Apr-09-2019, 12:04 PM
RE: adding goto to Python - by Kebap - Apr-09-2019, 12:59 PM
RE: adding goto to Python - by perfringo - Apr-09-2019, 01:32 PM
RE: adding goto to Python - by buran - Apr-09-2019, 02:00 PM
RE: adding goto to Python - by nilamo - Apr-09-2019, 09:15 PM
RE: adding goto to Python - by Larz60+ - Apr-09-2019, 11:44 PM
RE: adding goto to Python - by Skaperen - Apr-13-2019, 08:19 PM
RE: adding goto to Python - by Larz60+ - Apr-13-2019, 10:32 PM
RE: adding goto to Python - by Skaperen - Apr-13-2019, 11:44 PM
RE: adding goto to Python - by nilamo - Apr-16-2019, 03:53 PM
RE: adding goto to Python - by Skaperen - Apr-18-2019, 02:51 AM
RE: adding goto to Python - by ichabod801 - Apr-18-2019, 02:54 AM
RE: adding goto to Python - by Skaperen - Apr-18-2019, 03:23 AM

Forum Jump:

User Panel Messages

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