4 ms·
Only 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. Everyt
by FrozenVoid 7y ago
Only 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...