Date: Wed, 06 Mar 2002 20:43:56 -0500 From: Sergey Babkin <babkin@bellatlantic.net> To: Terry Lambert <tlambert2@mindspring.com> Cc: Kenneth Culver <culverk@alpha.yumyumyum.org>, "Steve B." <steveb99@earthlink.net>, "Eugene L. Vorokov" <vel@bugz.infotecs.ru>, freebsd-hackers@FreeBSD.ORG Subject: Re: C vs C++ Message-ID: <3C86C5DC.6DCBB3E8@bellatlantic.net> References: <20020305132457.A4700-100000@alpha.yumyumyum.org> <3C8529DA.FA8ABCE@mindspring.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?3C86C5DC.6DCBB3E8>
