4 ms·
> Well, not saying to always use it, but if the string size is big enough, the overhead of 2 ints becomes relatively vanishing. In that case, the fix is not to
by lelanthran 4mo ago
> Well, not saying to always use it, but if the string size is big enough, the overhead of 2 ints becomes relatively vanishing.
In that case, the fix is not to change C strings (breaking a lot of existing code), but to introduce a stringbuilder type.
- senfiaj 4mo agoYou can still use null terminator for compatibility (std::string does use this), but just not rely on that in your own code.