Re:Goto in Python
by k8tte on Monday September 21, 2015 @05:24AM
(#10251196)
You can resolve this in basically every language by reworking your code in smaller pieces, and simply returning from a loop. Jumping left and right should only be signalling that you are Doing It Wrong (tm)
[ Parent
| on HN ]
See the reply by Intermernet elsewhere in this discussion: https://news.ycombinator.com/item?id=10251397
Re:Goto in Python
by semi-extrinsic on Monday September 21, 2015 @02:36PM
(#10254243)
Can you do that without causing performance degradation e.g. through cache thrashing though? Fortran performance can vary significantly when you move stuff around.
Re:Goto in Python
by JupiterMoon on Monday September 21, 2015 @07:16AM
(#10251499)
I know this. As a said I would use this for one off scripts if it existed. (I'm not about to add a dependency to all my one off scripts though.)