4 ms·
And the opposition these people feel to C++ is deeply irrational. Sorry, but it's true: there's just no reason to prefer C to C++ that stands up to scrutiny. Li
by quotemstr 6y ago
And the opposition these people feel to C++ is deeply irrational. Sorry, but it's true: there's just no reason to prefer C to C++ that stands up to scrutiny. Linus is dead wrong and is just tripling down on stubbornness.
C++ doesn't cramp your style if you'd prefer to write C-style code, but it gives you the power to do much more, and on your own schedule and in your own way. Why on earth would you choose to use the much less capable plain C?
Christ, it's not like the moment you switch the compiler from gcc to g++ a demon comes and bonks you over the head with the GoF design patterns book. C++ can be as much like C as you want.
- dnautics 6y agoSuppose you are a c programmer and start a project in c++ and then someone joins your team and starts using a corner of the language you are not well versed in. That can be a very scary place.
- quotemstr 6y agoSuppose you are a C programmer and someone joins and starts using C in a way that you don't like. So what? Deliberately using a crippled language is a poor substitute for having code review and style standards.
- pjmlp 6y agoSuppose you are a C89 programmer, and start a project in C18, and then someone joins your team and starts using a corner of the language you are not well versed in. That can be a very scary place.
- nytgop77 6y agoin defense of linux people: - more ways to do things -> more effort required to keep somewhat uniform style - linus and friends just get to decide. (they can be as subjective as they want. The "their house their rules" kind of thing). - there is no "c/c++" language. there is c and there is c++. they have different std libraries, different idioms, and expert overlap is not that high. - linux kernel even in c is a huge success - so c is good enough for linux (enough kernel developers are comfortible and productive with it). - linux might have succeeded with cpp if it were used from the start, but now it's too late. Migration to cpp is a no-go: benefits do not outweigh costs (old code will not be rewritten in cpp, so people maintaining code will now have to be profficient in c AND cpp).