|
|
|
|
|
by kaba0
1162 days ago
|
|
What exactly is a problem with C++’s strings, or especially Rust’s? Everything you mentioned can be controlled as explicitly as you want. The only problem is C is simply not expressive enough to have proper abstractions like that. |
|
std::string_view would have been a good thing if it hadn't added another memory corruption foot gun.
A universal string type is one of those things where you can either have convenience or performance, but never both.