News for hackers. Stuff that matters.
Re:More Gotchas of Defer in Go, Part II by int_19h on Thursday December 21, 2017 @03:56PM (#15982661)
"defer" is effectively used for predictable destruction in Go, and a more automated RAII scheme could be used in its place.

C++/CLI is a language that targets a garbage-collected runtime, yet has full-fledged RAII semantics (they're mapped to CLR Dispose pattern).

Re:More Gotchas of Defer in Go, Part II by mratzloff on Friday December 22, 2017 @02:11AM (#15985772)
Oh, I totally forgot about C++/CLI! You're absolutely right; that's my mistake. I do agree that RAII is preferable.