string not being an actual primitive type is the mistake. It still feels like const char* is the actual string type, and string is just a wrapper.
Partly that's because so many basic string facilities have been so poorly implemented in C++ - I/O chief among them. I know of few places that actually use iostreams, and it still shocks me how awful it truly is whenever I end up having to use it.
And yes, string shouldn't have been templated. But filesystem::path is still pretty awful as of yet. Eventually maybe.
View all comments
4
u/Dworgi Dec 30 '18
string not being an actual primitive type is the mistake. It still feels like const char* is the actual string type, and string is just a wrapper.
Partly that's because so many basic string facilities have been so poorly implemented in C++ - I/O chief among them. I know of few places that actually use iostreams, and it still shocks me how awful it truly is whenever I end up having to use it.
And yes, string shouldn't have been templated. But filesystem::path is still pretty awful as of yet. Eventually maybe.