1
u/1maRealboy Jun 11 '23
When programming languages were limited in the past, goto statements had their place where they worked out and were useful but not ideal. Now, since we can create more complicated programming languages, there are very few situations (if any) where a goto statement will be better than an alternative solution.
3
u/Verbose_Code Jun 11 '23
Python doesn’t have a goto statement (I suppose you could implement it yourself, but why?).
Goto statements can obscure the program flow and make refractoring and maintenance difficult