Defer: sweet, but no syntactic sugar

from blog Posts on jub0bs.com, | ↗ original
defer, in a nutshell ¶ When learning Go, one quickly comes across the defer keyword. For instance, the Tour of Go introduces defer thus: A defer statement defers the execution of a function until the surrounding function returns. The deferred call’s arguments are evaluated immediately, but the function call is not executed until the surrounding...