3 ms·
Sounds an awful lot like C should just become C++ already...
by mehrdadn 7y ago
Sounds an awful lot like C should just become C++ already...
- antirez 7y agoNo need, C dynamic string libraries totally look like plain C.
- doboyy 7y agoNo doubt, but they are all non standard which is irritating for people who expect that out of the box.
- flohofwoe 7y agostd::string has its own share of problems, but at least it's useful for C programmers as a warning on how not to implement a string library (for instance: a string shouldn't be important enough to give it its own allocation, it shouldn't be mutable by default, there should be string manipulation functions which are actually useful in real world situations instead of being an academic exercise, and so on...).
- saagarjha 7y agoI’m not sure I understand your first and third complaints and the second one is why const exists.
- astrobe_ 7y agoWhat they really want is to find a way to convince their boss to rewrite everything in Go.
- doboyy 7y agoThis is bait but whatever. Keeping some properties of C is very hard if you go this route. It also seems you'll end up playing lanaguage design whack-a-mole problems which manifests its self in C++ and co.