Why not just do simple C++ RAII in C? | Hacker News Reader