I think the point with defer/errdefer
is not that it’s “hidden” - you have a sort of explicit goto
- but it’s not quite clear where to we are jumping, and the order of execution of deferred parts is semi-hidden, so to say. There was a discussion about goto vs defer a couple of months ago.