From owner-freebsd-chat Wed Mar 6 16: 8:22 2002 Delivered-To: freebsd-chat@freebsd.org Received: from rwcrmhc53.attbi.com (rwcrmhc53.attbi.com [204.127.198.39]) by hub.freebsd.org (Postfix) with ESMTP id 9C13437B404 for ; Wed, 6 Mar 2002 16:08:09 -0800 (PST) Received: from attbi.com ([12.237.241.112]) by rwcrmhc53.attbi.com (InterMail vM.4.01.03.27 201-229-121-127-20010626) with ESMTP id <20020307000809.KTDT2951.rwcrmhc53.attbi.com@attbi.com> for ; Thu, 7 Mar 2002 00:08:09 +0000 Message-ID: <3C86AF79.29D71F9C@attbi.com> Date: Wed, 06 Mar 2002 18:08:25 -0600 From: Joe Halpin X-Mailer: Mozilla 4.76 [en] (X11; U; Linux 2.4.2-2 i686) X-Accept-Language: en MIME-Version: 1.0 Cc: freebsd-chat@FreeBSD.ORG Subject: Re: C vs C++ References: <3C8529DA.FA8ABCE@mindspring.com> <20020305164151.T5854-100000@alpha.yumyumyum.org> <15493.24457.986109.726909@caddis.yogotech.com> <3C8573B2.35144B17@attbi.com> <200203051407.g25E7Cd67446@bugz.infotecs.ru> <001201c1c464$06416fd0$f642d9cf@DROID> <15493.49014.254461.125446@guru.mired.org> <3C8686E6.F76B8B56@attbi.com> <15494.42985.820103.310309@guru.mired.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-chat@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Mike Meyer wrote: > > Joe Halpin types: > > Mike Meyer wrote: > > > Joe Halpin types: > > > > 1. C++ is a more difficult language than C because it does more stuff > > > > than C. Ditto vs Java. > > > No, it doesn't do more stuff than C, Neither does Java. See the > > > Church-Turing thesis. Java and C++ are harder to learn because they > > > have more *features* than C. > > Sorry, I thought "had more features" was something like "did more". > > I don't see it that way. more in a bit. > > > For example, assembly language doesn't do anything Python can't, but > > Python does more (at least, per statement) than assembly language. > > That depends on the statements in question, the assembler, and the > coding style of the two programmers. Ok, let me be tedious about it. In general, higher level languages do more per statement than lowever level languages. There may be some set of assembly language statements that are directly comparable with some set of some higher level language statements, but I don't believe that's true in general. > > I'm not sure I understand your point. Are you trying to say that all > > Turing complete languages are equally difficult? > > No, I'm saying that all turing complete languages can do the same set > of things. I agreed with that. > If you want to divide languages up into levels in some > manner, it makes more sense to talk about "features". For example, > LISP-like languages have closures. OO languages can emulate them with > callable objects. To do either in C, you pretty much have to write an > interpreter for a language to do it - but you can still do it. I think I agreed with that too. > They thing is, those two features don't make the languages more > difficult; they make them less difficult, because you they allow you > to do things easily that would be very hard in C. In at least one case > - Scheme - features get added by removing restriction rather than > adding language constructs. That means that there is less to learn > about the language, even though it has more features. Experienced > programmes have problems with it because they have to unlearn things > they thought were invariants across languages. I think that was my point about C++. Maybe we're just not communicating, it's happened before with me. Joe To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-chat" in the body of the message