From: Richard D Riehle <laoXhai@ix.netcom.com>
Subject: Re: Private Children
Date: 1999/06/24
Date: 1999-06-24T13:04:39-05:00 [thread overview]
Message-ID: <7ktrvn$l84@dfw-ixnews19.ix.netcom.com> (raw)
In-Reply-To: t7emj1y32b.fsf@calumny.jyacc.com
In article <t7emj1y32b.fsf@calumny.jyacc.com>,
Hyman Rosen <hymie@prolifics.com> wrote:
>In C++ we can do the following. I'm not sure if I've duplicated the
>semantics you're aiming for, but I think I did. Unless I'm not
>understanding your intent, I don't see why my C++ is any more
>difficult than your Ada.
>
>class P
>{
>private:
> class Item;
> typedef Item *Item_Pointer;
>public:
> class T
> {
> public:
> // operations on T
> private:
> Item_Pointer Data;
> };
>};
I would first refer you to Mr. Freeman's article since he has more
eloquently examined this issue than I. A key difference between
C++ and Ada is that Ada _requires_ a separation of specification
from implementation. This is also true, for the most part, of the
Modula series. Although the semantics of an opaque type can be
expressed in C++, I believe the best and most direct expression
of this mechanism is found in Modula-3, then Ada, and lastly other
languages, such as C++.
The argument about whether a particular construct _can_ be expressed
in this or that language is often far from the issue of direct
expressibility. There are certain things that are more expressible in
C++ than Fortran, others more expressible in Fortran than C++, and still
others better expressed in COBOL than in C++ or Java. There are ideas
we can express in a single word in Japanese or Chinese that might take a
paragraph in English. This does not make Japanese better than English.
It is simply a matter of ease of expressibility. Also, the issue of
expressive power is quite subjective and almost always derives from one's
personal preferences and experiences, seldom from faultless logic.
I am sure there are Ada enthusiasts who will disagree with my contention
that Modula-3 is better at expressing opaque types than Ada. Overall,
my language preference still remains Ada, even though C++, Java,
Modula-3 and Object COBOL all have features of expressiveness for certain
constructs that are better than a similar construct in Ada.
Richard Riehle
richard@adaworks.com
http://www.adaworks.com
next prev parent reply other threads:[~1999-06-24 0:00 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
1999-06-20 0:00 Private Children Matthew Heaney
1999-06-21 0:00 ` Ted Dennison
1999-06-21 0:00 ` Tucker Taft
1999-06-21 0:00 ` Matthew Heaney
1999-06-21 0:00 ` Tucker Taft
1999-06-22 0:00 ` Richard D Riehle
1999-06-22 0:00 ` Dale Stanbrough
1999-06-22 0:00 ` Richard D Riehle
1999-06-22 0:00 ` Matthew Heaney
1999-06-23 0:00 ` Dale Stanbrough
1999-06-23 0:00 ` Matthew Heaney
1999-06-23 0:00 ` Dale Stanbrough
1999-06-23 0:00 ` Richard D Riehle
1999-06-23 0:00 ` Vladimir Olensky
1999-06-23 0:00 ` Richard D Riehle
1999-06-24 0:00 ` Hyman Rosen
1999-06-24 0:00 ` Richard D Riehle [this message]
1999-06-23 0:00 ` John Duncan
1999-06-24 0:00 ` Dale Stanbrough
1999-06-21 0:00 ` Matthew Heaney
1999-06-25 0:00 ` Robert Dewar
1999-06-21 0:00 ` Dale Stanbrough
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox