4 ms·
If C gets operator overloading and RAII, there will be no good reason to use C++ for me!!
by z3phyr 7y ago
If C gets operator overloading and RAII, there will be no good reason to use C++ for me!!
- sramsay 7y agoIs RAII in C a serious suggestion being made anywhere?
- FrozenVoid 7y agoOnly operator overloading is really important and would cut down the size of code written substantially. Thats the only real advantage of using C++ vs C. Everything else oop, function overloading,RAII,etc can be replaced with macros and structs.
- pingyong 7y agoPretty sure you can't make destructors with macros?
- FrozenVoid 7y agohttps://en.wikipedia.org/wiki/Resource_acquisition_is_initialization#Clang_and_GCC_%22cleanup%22_extension_for_C https://en.wikipedia.org/wiki/Resource_acquisition_is_initia...