Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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: