comp.lang.ada
 help / color / mirror / Atom feed
From: "Randy Brukardt" <randy@rrsoftware.com>
Subject: Re: Ada 202x and square brackets
Date: Thu, 21 Feb 2019 18:24:57 -0600
Date: 2019-02-21T18:24:57-06:00	[thread overview]
Message-ID: <q4nfgq$r4r$1@franka.jacob-sparre.dk> (raw)
In-Reply-To: be2e3cf3-e452-4501-a960-822bf6432cd9@googlegroups.com

"Lucretia" <laguest9000@googlemail.com> wrote in message 
news:be2e3cf3-e452-4501-a960-822bf6432cd9@googlegroups.com...
> On Wednesday, 20 February 2019 23:47:53 UTC, Randy Brukardt  wrote:
>
>>              My_Arr : constant Some_Unconstrained_Array_Type := [1];
>>
>> Container aggregates are roughly user-defined array aggrgeates.
>> (Alternatively, you can [maybe should] think of an array as a built-in
>> container.)
>
> Do you think the language is getting a tad too complicated now?

How so? The idea has been that an abstract data type should be able to 
declare all of the same capabilities as a built-in type. The main remaining 
holes were literals and aggregates, and those have been addressed now.

It can be complicated to build such an ADT, but that's not something that is 
done often (much like with generics). OTOH, the user experience should be 
fairly seamless -- you can write the same thing whether or not the type is 
built-in or user-defined, and (if properly defined), they'll mean the same 
thing. Most people won't care how a user-defined aggregate is constructed 
any more than they care how a vector container supports indexing. (At least, 
that's the goal.)

                           Randy.



  reply	other threads:[~2019-02-22  0:24 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-02-19 22:01 Ada 202x and square brackets Lucretia
2019-02-19 22:36 ` Lucretia
2019-02-20 14:32 ` Jere
2019-02-20 14:38   ` Jere
2019-02-20 14:58   ` Lucretia
2019-02-20 23:47     ` Randy Brukardt
2019-02-21  4:27       ` Lucretia
2019-02-22  0:24         ` Randy Brukardt [this message]
2019-02-22 10:34           ` AdaMagica
2019-02-22 11:53             ` J-P. Rosen
2019-02-22 12:37               ` AdaMagica
2019-02-22 16:56                 ` J-P. Rosen
2019-02-22 17:09                   ` AdaMagica
2019-02-22 22:18             ` Randy Brukardt
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox