News for hackers. Stuff that matters.
Re:Modern C for C++ Peeps by nextaccountic on Saturday January 07, 2023 @03:11PM (#34292154)
I think Zig's defer and errdefer make this pattern slightly more tolerable, but proper RAII is indeed best

https://ziglang.org/documentation/master/#defer

https://ziglang.org/documentation/master/#errdefer

There are no comments on this comment yet.