Re:Four days of Go
by scott_s on Wednesday April 22, 2015 @10:47AM
(#9420791)
Goto's are used extensively in the Linux kernel for clean exits from functions (typically system calls) that must validate parameters, allocating resources as they go, but then abort if there are any errors in the parameters. For example: http://lxr.free-electrons.com/source/kernel/fork.c?v=3.3#L42...
[ Parent
| on HN ]