▲ | maleldil 4 hours ago | |||||||
From the README: > Memory safety with RAII patterns I'm curious to see how they achieve RAII in Zig, which doesn't have destructors. If they mean defer + deinit methods, that's not the same thing. | ||||||||
▲ | teo_zero 23 minutes ago | parent | next [-] | |||||||
> If they mean defer + deinit methods, that's not the same thing. No? It's the first thing that came to my mind when I've read RAII. | ||||||||
▲ | justinhj 4 hours ago | parent | prev [-] | |||||||
Zig is all about making things explicit. Destructors are hidden code. I presume there will be an application level tracking of lifetime. | ||||||||
|