From owner-freebsd-hackers Wed Mar 6 7:21:38 2002 Delivered-To: freebsd-hackers@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id A346837B428 for ; Wed, 6 Mar 2002 07:21:04 -0800 (PST) Received: from hades.hell.gr (patr530-a100.otenet.gr [212.205.215.100]) by mailsrv.otenet.gr (8.12.2/8.12.2) with ESMTP id g26FKquj026215; Wed, 6 Mar 2002 17:20:53 +0200 (EET) Received: from hades.hell.gr (hades [127.0.0.1]) by hades.hell.gr (8.12.2/8.12.2) with ESMTP id g26FL20W010617; Wed, 6 Mar 2002 17:21:04 +0200 (EET) (envelope-from keramida@freebsd.org) Received: (from charon@localhost) by hades.hell.gr (8.12.2/8.12.2/Submit) id g263KTX2008309; Wed, 6 Mar 2002 05:20:29 +0200 (EET) (envelope-from keramida@freebsd.org) X-Authentication-Warning: hades.hell.gr: charon set sender to keramida@freebsd.org using -f Date: Wed, 6 Mar 2002 05:20:29 +0200 From: Giorgos Keramidas To: Terry Lambert Cc: "Steve B." , freebsd-hackers@freebsd.org Subject: Re: C vs C++ Message-ID: <20020306032029.GA7926@hades.hell.gr> References: <20020305132457.A4700-100000@alpha.yumyumyum.org> <001701c1c481$d0d5eab0$f642d9cf@DROID> <20020305231252.GC5328@hades.hell.gr> <3C8568E0.76415D99@mindspring.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3C8568E0.76415D99@mindspring.com> User-Agent: Mutt/1.3.27i 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 On 2002-03-05 16:54, Terry Lambert wrote: > Giorgos Keramidas wrote: > > The steeper learning curve of C++ is indeed steeper, not because of > > some magic property of the object-oriented programming paradigm, but > > because there are a lot more things to learn, before a complete > > program can be written, IMHO. > > Uh... "Hello World" looks the same in ANSI C and C++, unless > you insist on using I/O streams and "cout", which no one ever > really does, unless they are writing a C++ book or trying to > impress a student. Well, to be frank, I've seen a few C++ coding style documents, that suggest avoiding altogether when writing in C++. The fact that parts of the C++ libraries already use the I/O stream classes, which have their own buffers, combined with the buffered I/O that does by default, can and usually does result in all hell being let loose. But then, I'm probably starting to go off topic here... Giorgos Keramidas FreeBSD Documentation Project keramida@{freebsd.org,ceid.upatras.gr} http://www.FreeBSD.org/docproj/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message