4 ms·
Because it sucks to deal with strings in C & C++, and the web is mostly strings.
by rdouble 14y ago
Because it sucks to deal with strings in C & C++, and the web is mostly strings.
- slake 14y agoIs C & C++ really worse than Java at strings? Don't think so but I'm not sure. Can't imagine they're far apart.
- mschuster91 14y agoC definitely - strlen() not binary safe, you have to deal with malloc()/free()/strdup() etc. by hand instead of letting a highly optimized GC do the job...
- dmm 14y agoOr you could just strdup and malloc a bunch of strings and let the kernel clean it up when the cgi process exits. ;)
- wmil 14y agoYes. C & C++ strings are so bad that most large libraries ship with their own string functions.