Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pcwalton
on Dec 21, 2017
|
parent
|
context
|
favorite
| on:
More Gotchas of Defer in Go, Part II
But that defer is already lexically at the function scope, so block-scoped defer would do the same thing.
barsonme
on Dec 21, 2017
[–]
Ah, sorry, you meant function-scoped vs block-scoped not just in general. Yeah, agreed.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: