Hacker News new | past | comments | ask | show | jobs | submit login

The std::string example given by Zed shows that he didn't hack around C++/STL much.

There is a whole entry in Exceptional C++ Style (or another Herb's book) that says how much std::string sucks and how you can write an equivalent extremely quickly.

Anyway, don't like std::string ? You can use std::vector in place very easily, that's a well known trick (thanks to the guarantee that &v[0] returns a pointer to the data if v is a vector).

He talks about references but he seems to ignore the capability of C++ to offer perfect forwarding which enables you to greatly increase performance and memory usage and that's very difficult to mimic in pure C.

There's a lot to write about inaccuracies in this post actually, but what the point? People who hate C++ will discard them and people who love it already know it.

I tire of reading posts from people who didn't like a language for whatever reason and try to rationalize it.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: