|
|
|
|
|
by igor_akhmetov
1088 days ago
|
|
I really want to like Zig. Honest question: why is Zig so resistant to some kind of RAII? RAII is the biggest improvement that C++ brings over C. Leaving it out of a system programming language 50 years later is just strange? And no, manual defer is not the solution. |
|
You can disagree with the language principles if that is one’s position. However, the ‘resistance’ to RAII is a clear effect of those principles.