3 ms·
If someone is using a C++ feature it's because they think the feature is better than not using it. std::string lets you treat strings as easily as ints — subjec
by direwolf20 9mo ago
If someone is using a C++ feature it's because they think the feature is better than not using it. std::string lets you treat strings as easily as ints — subject to a run–time cost. You can make libraries that make strings easier to use in C, but you can't make one that makes them as easy as ints.
- uecker 9mo agoBut it does not have to be "as easy as int" to be able to be productive in C. Almost as easy is sufficient.
- direwolf20 9mo agoIt's not almost.
- uecker 9mo agoI am very happy with my string type in C.