|
|
|
|
|
by aninhumer
3436 days ago
|
|
Sure there are some cases in C where you want a particular control flow that the language doesn't allow, and goto is the best solution in those cases. But all the examples of this that I've seen are still structured it's just that the language isn't able to express that structure. The most common examples are jumping out of nested loops (better solved by allowing named loops so you can use break/continue) or jumping immediately to error handling logic (better solved by exceptions, or even just simplistic try/throw/catch). I do think there's a conceptual problem with arbitrary jumps. |
|