From owner-freebsd-hackers Tue Mar 5 11:53:36 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mail.rpi.edu (mail.rpi.edu [128.113.22.40]) by hub.freebsd.org (Postfix) with ESMTP id 4F7CD37B400 for ; Tue, 5 Mar 2002 11:53:32 -0800 (PST) Received: from [128.113.24.47] (gilead.acs.rpi.edu [128.113.24.47]) by mail.rpi.edu (8.12.1/8.12.1) with ESMTP id g25JrLcR119144; Tue, 5 Mar 2002 14:53:21 -0500 Mime-Version: 1.0 X-Sender: drosih@mail.rpi.edu Message-Id: In-Reply-To: <200203051407.g25E7Cd67446@bugz.infotecs.ru> References: <200203051407.g25E7Cd67446@bugz.infotecs.ru> Date: Tue, 5 Mar 2002 14:53:19 -0500 To: "Eugene L. Vorokov" , freebsd-hackers@FreeBSD.ORG From: Garance A Drosihn Subject: Re: C vs C++ Content-Type: text/plain; charset="us-ascii" ; format="flowed" X-Scanned-By: MIMEDefang 2.3 (www dot roaringpenguin dot com slash mimedefang) 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 At 5:07 PM +0300 3/5/02, Eugene L. Vorokov wrote: >Hello, > >I have a small problem. I work for software development company and >write daemons and console tools for Unix. My boss wants everything >to be written in C++, because he thinks C++ is cool. I prefer C >for such tasks, but I cannot really put good arguments of why and >where C++ can be worse than C. I know many of you prefer C too. >Can you please explain some disadvantages of C++ comparing to C ? Anyone who thinks C++ is some kind of magic bullet because "it is cool" is just fooling themselves. You may be able to do some great stuff in C++, but only if you take the time to really learn the language, and it's pitfalls (so you know what to avoid). I prefer C over C++ because there is less there to "really learn". but this is probably one of those personal-preference things which is impossible for any one side to prove their position to any other side... -- Garance Alistair Drosehn = gad@eclipse.acs.rpi.edu Senior Systems Programmer or gad@freebsd.org Rensselaer Polytechnic Institute or drosih@rpi.edu To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message