4 ms·
Free functions are fine, I prefer them also. What I mean by "C with classes" is the worst side of both languages. Type-unsafe C coding (pointers, casts., manua
by petke 11y ago
Free functions are fine, I prefer them also.
What I mean by "C with classes" is the worst side of both languages. Type-unsafe C coding (pointers, casts., manual memory allocations, etc), with OOP (highly coupled complex class hierarchies, virtual calls, etc).
The modern C++ way is to use RAII, value semantics, and STL everywhere.