Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
mappu
on Oct 21, 2017
|
parent
|
context
|
favorite
| on:
Implementing Go's defer keyword in C++
The ScopeGuard RAII destructor will be called at the end of the scope, but Go's defer will be called at the end of the function.
e.g. in Go can you can defer inside a for loop.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search:
e.g. in Go can you can defer inside a for loop.