goto to a line number is not the very nice... adding a new line will mess up all the previous gotos
This Gist is still super cool, though.
QBasic let you use either a line number or a label, I believe they only kept line numbers after labels were introduced for backwards compatibility.
I know I'm veering way off topic but for as much disdain as BASICs receive, I really do feel like coding up a simple game was much easier for teenage-me in QBasic than it was in Python with pygame, for whatever reason.
I wasted a lot of time with C/C++, if I had immersed myself in QBasic, I would have better actualized myself.
LABEL = sys._getframe().f_lineno
print(1)
j(LABEL) print(1)
goto('MYLABEL')
print(2)
label('MYLABEL')
print(3)
Or better yet... for x in range(10):
for y in range(10):
if x == 5 and y == 5:
print(x, y)
goto('MULTIBREAK')
label('MULTIBREAK')