Hacker News new | ask | show | jobs
by tptacek 4597 days ago
Actually, across the Go standard library, "defer" is used pretty much exactly for what 80% of C++ RAII is used for: cleaning up locks.