I haven't contributed to gcc, except by bug reports.
However, I have worked with many C and C++ projects. In my experience, you CAN represent objects very cleanly in C-- the kernel is a good example. C++ has its advantages for certain applications, but it's far from a cure-all. It's kind of funny that on "Linux weekly news" people haven't read the opinions of the creator of Linux about C++.
Posted Dec 24, 2012 7:46 UTC (Mon) by boudewijn (subscriber, #14185)
[Link]
I have read those opinions, and dismissed them as more of the bigoted nonsense that Linus is apt to spout when he feels like flaming off a bit.
GNU sed 4.2.2 released; maintainer resigns
Posted Dec 24, 2012 15:05 UTC (Mon) by dberlin (subscriber, #24694)
[Link]
Of course i've read it, but what does that have to do with anything.
The kernel is not exactly the bastion of clean maintainable code, despite Linus's opinions.
Nobody complaining about C++ has yet come onto the GCC mailing list and explained, in clear concrete terms with examples, how they could make GCC more maintainable using C than it would be using C++.
Instead they sit on LWN and kibitz from afar.
GNU sed 4.2.2 released; maintainer resigns
Posted Dec 25, 2012 22:41 UTC (Tue) by HelloWorld (guest, #56129)
[Link]
> However, I have worked with many C and C++ projects. In my experience, you CAN represent objects very cleanly in C-- the kernel is a good example.
I disagree, the typical implementation of objects with vtables etc. is ugly in C, and manual implementations of advanced concepts like multiple and virtual inheritance are hard to use and maintain.
C++ also has a lot more to offer than OOP (esp. templates).