News for hackers. Stuff that matters.
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...
Re:Four days of Go by nulltype on Wednesday April 22, 2015 @03:21PM (#9422887)
In Go, defer basically serves this use case.