News for hackers. Stuff that matters.
Re:Linus Torvalds on C++ by aidenn0 on Monday February 27, 2012 @10:28PM (#3641756)
I work with both C and C++ regularly.

I don't like C++, but I like C.

Counterintuitively I think the underlying reason is that C++ follows the exact same philosophy as C. For all of the following statements you can replace C with C++ and it is equally true:

Every feature X acts in such a way to make implementing it at the time of its invention as expedient as possible

The best heuristic for guessing how a feature you don't know (or forgot) works in X is to say "let's imagine X was just as it is now, only without this feature, how would I implement it?"

All of this means that in order to be a competent X programmer, one ought to be able to write an X compiler without too much outside help.

I could go on and on like this, but hopefully you get the point. Now it is clear that the philosophy for X works for small languages (like C) but could easily have scaling problems (like C++).

It also becomes clear why so many places subset C++, but don't pick the same subset. The problem isn't that some feature is broken, the problem is that there are too many features without an overriding rule that most people can apply. I would also believe that Bjarne Stroustrup can be quite effective programming C++ since he knows the language intimately enough.

There are no comments on this comment yet.