Re:Linux: Using goto In Kernel Code (2003)
by Spivak on Saturday July 17, 2021 @11:33AM
(#27866482)
Basically all modern programming control flow paradigms are about finding all the safe patterns of goto and setjmp.
Everyone agrees about loops, try catch for goto err; is near ubiquitous, defer and context managers are popular for goto cleanup;, throw is setjmp up the stack, coroutines are setjmp for multitasking.
Everyone agrees about loops, try catch for goto err; is near ubiquitous, defer and context managers are popular for goto cleanup;, throw is setjmp up the stack, coroutines are setjmp for multitasking.