Show HN: C and C++ preprocessor for modern memory safety
github.com
Cdefer A Next-Generation Memory-Safe Preprocessor for C & C++
Bringing modern memory safety and zero-configuration builds to classic C & C++.
github.com
Bringing modern memory safety and zero-configuration builds to classic C & C++.
`defer` is a poor man's RAII. C++ has had RAII since the beginning, and C++ is still not considered memory safe. So how will adding `defer` help C++ to become memory safe?
This feels like another example of how poorly C and C++ devs understand the ideas behind memory safety. You do not really need to understand this concept, as long as you can debug all the memory issues that just pop up:-)