From owner-freebsd-hackers Wed Mar 6 17:44:12 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from out016.verizon.net (out016pub.verizon.net [206.46.170.92]) by hub.freebsd.org (Postfix) with ESMTP id 4400C37B416 for ; Wed, 6 Mar 2002 17:44:07 -0800 (PST) Received: from bellatlantic.net ([138.89.156.175]) by out016.verizon.net (InterMail vM.5.01.04.05 201-253-122-122-105-20011231) with ESMTP id <20020307014402.CHGB8955.out016.verizon.net@bellatlantic.net>; Wed, 6 Mar 2002 19:44:02 -0600 Message-ID: <3C86C5DC.6DCBB3E8@bellatlantic.net> Date: Wed, 06 Mar 2002 20:43:56 -0500 From: Sergey Babkin X-Mailer: Mozilla 4.7 [en] (X11; U; FreeBSD 4.0-19990626-CURRENT i386) X-Accept-Language: en, ru MIME-Version: 1.0 To: Terry Lambert Cc: Kenneth Culver , "Steve B." , "Eugene L. Vorokov" , freebsd-hackers@FreeBSD.ORG Subject: Re: C vs C++ References: <20020305132457.A4700-100000@alpha.yumyumyum.org> <3C8529DA.FA8ABCE@mindspring.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG Terry Lambert wrote: > > Kenneth Culver wrote: > > Why are you being so sarcastic? Everyone here is assuming that it's harder > > to write C++ code, so you should only use it if necessary. It isn't > > necessary to use it for something like a daemon. > > Because that underlying assumption is false, and I'm making > fun of it. > > If you don't use C++ specific features, you're just writing > C code anyway. Not exactly. There are semantic differences even in the code looking just like C. > It's not harder to write C++ code that uses the special features > of the language; it may be harder for a programmer unfamiliar Yes, it is. To make things right with these features you need to write a few times more lines of code. This gives you a few times more opportunities to make mistakes and requires a few times more of testing. > There are a lot of benefits to the use of C++ that outweigh > the downside, particularly if you are a company paying for Sure, as long as your project grows big enough, the benefits start outweighing the troubles. > something, and you want to invest the value in the code base > instead of investing it in people who can walk out the door > and sign with your competition tomorrow. Makes no difference in this respect. You have the codebase anyway and you need people who understand it anyway too. -SB To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message