Or a better idea: don't use goto. In any language. Especially not one that needs line numbers to work and not labels, as soon as someone edits the file utter chaos will ensue. This has all the normal downsides of gotos with labels, but with far more downsides.
this post was submitted on 16 Jul 2023
19 points (100.0% liked)
Programming Horror
1888 readers
16 users here now
Welcome to Programming Horror!
This is a place to share strange or terrible code you come across.
For more general memes about programming there's also Programmer Humor.
Looking for mods. If youre interested in moderating the community feel free to dm @Ategon@programming.dev
Rules
- Keep content in english
- No advertisements (this includes both code in advertisements and advertisement in posts)
- No generated code (a person has to have made it)
Credits
founded 1 year ago
MODERATORS
It also only works for the main module and only until you hit the recursion limit.