by 30thElement · 12y ago · 0 comments
C++ is all about low-cost abstractions. Any speed difference between the C++ way and the C way should be very small, and the C++ way is safer. Use std::string (and std::vector and all the rest) unless you have a very good reason not too, and then you should probably just write your own custom implementation. Reverting to the C way is just asking for issues.
I'm all for using abstractions and working smarter, but why pay such a performance penalty?