From: Shark8 <onewingedshark@gmail.com>
Subject: Re: Ada Distilled by Richard Riehle
Date: Fri, 27 Jul 2018 14:34:40 -0700 (PDT)
Date: 2018-07-27T14:34:40-07:00 [thread overview]
Message-ID: <d89a34f0-3a49-41d2-9d3d-8e85fe26bea8@googlegroups.com> (raw)
In-Reply-To: <pjfu1l$lmn$1@gioia.aioe.org>
On Friday, July 27, 2018 at 2:07:21 PM UTC-6, Dmitry A. Kazakov wrote:
>
> Types algebra, yes. Most important type operations Ada lacks are:
>
> - ad-hoc supertypes,
> - interface inheritance,
> - full MI,
> - full MD
Ad-hoc supertypes are, I think, a mistake. The value in SUBTYPE is that it is a singular set of restrictions [possibly null] placed upon it's "supertype". What this means is that for every SUBTYPE S there's an application of 'Base to get to the first subtype (Ada "TYPE") -- This means that the relation of TYPE/SUBTYPE can be graphed as a tree; if we introduce ad-hoc supertypes, we lose this property and now have to contend with a full many-to-many possibility TYPE-network rather than TYPE-tree. And I fail to see how this would be useful in-practice. (IOW, what is the real use-case? Does that use-case justify such an increase in complexity?)
I'm in agreement with interface-inheritance, I think: IIRC, you're referring to what is essentially my idea for "abstract interfaces" whereby we could define Ada's type-system in terms of the stated hierarchy; as per this picture: https://en.wikibooks.org/wiki/Ada_Programming/Type_System#The_Type_Hierarchy -- exposing what is already fairly explicit in the LRM.
Multiple Inheritance -- I'm not sure this is a good idea at all. Looking at C++ programmers and their experiences it seems to be more trouble than it's actually worth. (Interfaces aren't so bad, but can still conflict; Delphi has the IMPLEMENTS keyword that can be used for both disambiguation as well as delegation.) ...Why do you think Ada (or its successor) should have full MI?
Multiple Dispatch -- This one I can see having more usability than Multiple Inheritance.
next prev parent reply other threads:[~2018-07-27 21:34 UTC|newest]
Thread overview: 29+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-15 18:09 Ada Distilled by Richard Riehle rabbibotton
2018-07-16 1:02 ` Shark8
2018-07-21 6:07 ` Randy Brukardt
2018-07-26 0:42 ` rabbibotton
2018-07-26 20:17 ` Shark8
2018-07-26 21:10 ` Jeffrey R. Carter
2018-07-27 3:01 ` Paul Rubin
2018-07-27 14:32 ` rabbibotton
2018-07-27 20:18 ` Paul Rubin
2018-07-27 17:02 ` Shark8
2018-07-27 14:30 ` rabbibotton
2018-07-27 17:11 ` Shark8
2018-07-27 18:52 ` Dan'l Miller
2018-07-27 20:07 ` Dmitry A. Kazakov
2018-07-27 20:38 ` Dan'l Miller
2018-07-27 21:32 ` Dmitry A. Kazakov
2018-07-28 2:41 ` Dan'l Miller
2018-07-28 7:10 ` Dmitry A. Kazakov
2018-07-28 15:01 ` Dan'l Miller
2018-07-28 15:41 ` Dmitry A. Kazakov
2018-07-28 16:05 ` Dan'l Miller
2018-08-06 19:33 ` Vincent
2018-08-06 22:01 ` Dmitry A. Kazakov
2021-12-09 11:13 ` Kevin Chadwick
2018-07-27 21:34 ` Shark8 [this message]
2018-07-27 22:16 ` Dmitry A. Kazakov
2018-07-28 3:52 ` Dan'l Miller
2018-07-28 7:12 ` Dmitry A. Kazakov
2018-07-27 20:35 ` Paul Rubin
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox