4 ms·
> [0] C++, Rust, Go, or anything else with automatic memory management and destructors Go's automatic memory management (GC) doesn't come in to play here, but
by mort96 4y ago
> [0] C++, Rust, Go, or anything else with automatic memory management and destructors
Go's automatic memory management (GC) doesn't come in to play here, but the defer statement does. It doesn't make Go a RAII language, but it makes Go a language with a nicer "run this code at the end of the stack frame" feature than goto.