Linus has his reasons, some of which are actually technical and relate to
the unique requirements of the Linux kernel.

Have you written at least a few hundred klocs in both C and C++?  I'm sure
that David has and I agree with his statements 100%, perhaps with one
caveat - C++ is a much bigger language: the more complicated features like
templates can be complicated to use and we tend to mostly avoid them.   Our
C++ code looks mostly like C with judicious use of classes, RAII,
exceptions, etc.

Kirk Wolf
Dovetailed Technologies
http://dovetail.com

On Tue, Sep 18, 2012 at 7:21 AM, Shane Ginnane <[email protected]> wrote:

> On Tue, 18 Sep 2012 13:40:11 +0800, David Crayford  wrote:
>
> >In fact, I find it difficult to fathom why anybody
> >would still write C code when C++ is such a superior language.
>
> I seem to recall some fella named Torvalds having his say about this a few
> years ago.
> People (no, not Dave) keep coming up with a plaintive "why ain't the
> kernel written in C++ ... ?"
>
> Comes back to the old adage of "right tool for the job".
>
> Shane ...
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to