From owner-freebsd-hackers Tue Mar 5 17:16:10 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from avocet.prod.itd.earthlink.net (avocet.mail.pas.earthlink.net [207.217.120.50]) by hub.freebsd.org (Postfix) with ESMTP id 0C5AC37B402 for ; Tue, 5 Mar 2002 17:16:08 -0800 (PST) Received: from pool0228.cvx40-bradley.dialup.earthlink.net ([216.244.42.228] helo=mindspring.com) by avocet.prod.itd.earthlink.net with esmtp (Exim 3.33 #1) id 16iQ2E-0000l6-00; Tue, 05 Mar 2002 17:16:03 -0800 Message-ID: <3C856DB5.E5F14F62@mindspring.com> Date: Tue, 05 Mar 2002 17:15:33 -0800 From: Terry Lambert X-Mailer: Mozilla 4.7 [en]C-CCK-MCD {Sony} (Win98; U) X-Accept-Language: en MIME-Version: 1.0 To: Kenneth Culver Cc: "Steve B." , "Eugene L. Vorokov" , freebsd-hackers@FreeBSD.ORG Subject: Re: C vs C++ References: <20020305164151.T5854-100000@alpha.yumyumyum.org> 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 Kenneth Culver wrote: > > Because that underlying assumption is false, and I'm making > > fun of it. > > Well, that in itself is wrong. C++ code IS harder to write and write > correctly and effeciently, as I would assume it is for any OO language. C++ is not an O-O language. It is a language based on C that has O-O constructs which are lacking in C. It enables you to do O-O programming, but it doesn't constraing you to doing O-O programming. Just as Java doesn't constrain you (indeed, a number of Sun APIs break the O-O model by being able to instance unconstructed objects on which you have to post-call an initializer, which is incredibly broken). It's actually easier for humans to use an abstraction for complexity; if it weren't all rental cars would come with manual transmissions and two levers for steering. > I'm not saying it can't be done, but generally speaking based on the Open > source and commercial products I've seen, the ones that are written in C++ > suffer from more bloat and run slower. "A trout is a fish." "Therefore all fish are trout." I think you just failed set theory... ;^). -- Terry To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message