News for hackers. Stuff that matters.
Re:Show HN: C and C++ preprocessor for modern memory safety by KrishnaTorque on Sunday October 19, 2025 @04:36PM (#45637715)
Right now there are 3 approaches. The "defer" will free memory when exit scope. Then there is a "try" macro which will handle IO. Then there is macro expansion which will ensure to compile safely. However there are a tons of things to do. It is still in alpha.
Re:Show HN: C and C++ preprocessor for modern memory safety by Panzerschrek on Monday October 20, 2025 @02:01AM (#45640486)
I see no way "defer" may guarantee memory safety. And why is it needed at all in C++, where destructors do similar job of resources freeing?