Re: linux headers and C++

Jes Sorensen (Jes.Sorensen@cern.ch)
06 Jul 1999 12:16:29 +0200


>>>>> "Frank" == Frank Butter <fbutter@ottomall.com.tw> writes:

Frank> On 06-Jul-99 Jes Sorensen wrote:
>> C++ is much harder to maintain because there are a zillion obscure
>> features people can use in there. It means that the people who
>> maintains the kernel needs to understand these things as well thus
>> we suddenly reduce the number of potential kernel programmers to a
>> tiny fraction of what we had before.

Frank> until now I thought (and experienced) exactly the opposite.
Frank> C++ is imho especially perfect to maintain bigger projects and
Frank> was designed for this. to make programmers life easier in
Frank> bigger projects and development teams. in a well designed C++
Frank> project you are actually forced to do the right thing (e.g. use
Frank> inherited objects in the right way - and yes, use the overload
Frank> feature to simply add features to an inherited object works
Frank> great and does not confuse at all, if you are using it in the
Frank> right way...). so do you really think C++ (and OOP in general)
Frank> is a retrogression compared to C ??

I am not saying OOP is bad, I am saying C++ is bad, in particular in
the kernel. We have had this thread before, lets not get side tracked
again. The Linux kernel is a very good example of Object Oriented C.

If people want to discuss whether C++ is superior to C, please do it
somewhere else.

Jes

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/