News for hackers. Stuff that matters.
Re:Orthodox C++ by cmovq on Wednesday May 22, 2024 @07:37PM (#40448289)
I can understand banning it. It’s important to understand std::string is more of a string builder implementation, which is rarely what you want, but people treat it as the default way to handle strings in C++.

Too often I have to fix code that makes liberal use of std::string, making copies and allocations everywhere for no apparent reason, when string_view or better const char* would do.

There are no comments on this comment yet.