|
|
|
|
|
by sirwhinesalot
812 days ago
|
|
Jumping out of nested loops. Implementing higher level constructs like yield or defer. State machines. Compiler output that uses C as a "cross-platform" assembly language. All of them are better served with more specialized language constructs but as a widely applicable hammer goto is pretty nice. I don't expect C to have good error handling or generators any time soon but with goto I can deal with it. |
|
Something like libprotothreads can't actually be implemented in a language that doesn't have gotos, so yeah, I see the need for it.