4 ms·
But you can also do that with recursion if failed: do_thing() This is covered in the Julia docs, where they argue recursion is more readable than goto https:
by framecowbird 5y ago
But you can also do that with recursion
if failed: do_thing()
This is covered in the Julia docs, where they argue recursion is more readable than goto
https://sodocumentation.net/julia-lang/topic/5564/-goto-and--label#input-validation https://sodocumentation.net/julia-lang/topic/5564/-goto-and-...
- withinboredom 5y agoI guess that depends on if the language supports tail recursion and/or you're 100% sure it won't blow the stack. If you need to retry forever, without using any memory to do so, goto is perfect.