From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,T_SCC_BODY_TEXT_LINE, XPRIO autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: New aggregates with Ada 2022. Date: Thu, 30 Jun 2022 00:07:14 -0500 Organization: A noiseless patient Spider Message-ID: References: Injection-Date: Thu, 30 Jun 2022 05:07:15 -0000 (UTC) Injection-Info: reader01.eternal-september.org; posting-host="8f16bde40f2e228477f06b32f394b010"; logging-data="1808281"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+wZAlzmMYL52Dy+jvnC1R2V8ZZfFQ1NCc=" Cancel-Lock: sha1:XAiL31oqdJLMIrWksU33UAVIoww= X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Response X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 X-Priority: 3 Xref: reader01.eternal-september.org comp.lang.ada:64056 List-Id: "Jeffrey R.Carter" wrote in message news:t9hi0d$1ebn4$1@dont-email.me... ... > Perhaps I could have been clearer. I mean that it doesn't make sense to > concatenate, sort, slice, or slide an array used as a map. For example, if > we represent a map Character => Natural as > > type Char_Count_Map is array (Character) of Natural; > Map : Char_Count_Map; > > and want a map with the domain restricted to the ASCII letters, both > capital and small, > > Map ('A' .. 'Z') & Map ('a' ..'z') > > doesn't do what we want. > > You are talking about the abstraction of a map in general, and the > operations you describe are different from the array operations I was > talking about. Exactly. And this is a general problem with arrays (and with built-in types in general): the operations often have no relationship to what it really needed. And even when they do, it is more of a happy accident than something meaningful. It's way better to not have those confusing operations around in the first place. Randy.