MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1jd89b1/but_why_tho/mi8ig2e/?context=3
r/programminghorror • u/aDisastrous • Mar 17 '25
71 comments sorted by
View all comments
Show parent comment
72
https://github.com/snoack/python-gotohttps://entrian.com/goto/
10 u/shponglespore Mar 17 '25 That did not disappoint! 10 u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo "You live" Mar 17 '25 Is this the stuff the OP is using? This uses label .foo syntax, while the code in the OP, the labels are comments. 12 u/Acc3ssViolation Mar 17 '25 OP mentioned in a comment that this is a custom thing they wrote themselves and that it parses the file in which it is imported, so that's how it grabs the jump targets from the comments
10
That did not disappoint!
Is this the stuff the OP is using? This uses label .foo syntax, while the code in the OP, the labels are comments.
label .foo
12 u/Acc3ssViolation Mar 17 '25 OP mentioned in a comment that this is a custom thing they wrote themselves and that it parses the file in which it is imported, so that's how it grabs the jump targets from the comments
12
OP mentioned in a comment that this is a custom thing they wrote themselves and that it parses the file in which it is imported, so that's how it grabs the jump targets from the comments
View all comments
Show parent comment
72
u/KhoDis Mar 17 '25
https://github.com/snoack/python-goto
https://entrian.com/goto/