On Thu, 19 Aug 2010, Garrett D'Amore wrote:

There are many many things to dislike about C++ -- you *can* write good
clean code in C++, but almost none of the C++ code I've seen fits that
description.

The various side effects, and unexpected memory explosion that occurs
with the "favored" C++ constructs tends to make C++ completely
unsuitable for use in a kernel.

Since 1996, all of my professional programming work (for products) has been done in C++. Most of my open source work has been done in C. There should be little doubt that C++ is a much better implementation/design language than C, however, it does suffer from the interoperability concerns (and cross-compiler portability concerns) that Garrett mentions. I have not encountered issues with excessive memory consumption or slow execution.

There are plenty of people who don't know how to program in C++ or other object oriented languages. Most of these people should not be programming at all.

Zfs could have been implemented in C++, but it would not be as friendly in a kernel which is already implemented in C.

Bob
--
Bob Friesenhahn
bfrie...@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
_______________________________________________
zfs-discuss mailing list
zfs-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/zfs-discuss

Reply via email to