From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-0.5 required=3.0 tests=BAYES_05,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:aed:2f24:: with SMTP id l33mr23688316qtd.153.1615830799309; Mon, 15 Mar 2021 10:53:19 -0700 (PDT) X-Received: by 2002:a25:b906:: with SMTP id x6mr1183334ybj.504.1615830799077; Mon, 15 Mar 2021 10:53:19 -0700 (PDT) Path: eternal-september.org!reader02.eternal-september.org!goblin3!goblin1!goblin.stu.neva.ru!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Mon, 15 Mar 2021 10:53:18 -0700 (PDT) In-Reply-To: <8f7d1d02-c5f0-4ed5-8003-09c6f467d63cn@googlegroups.com> Injection-Info: google-groups.googlegroups.com; posting-host=146.5.2.231; posting-account=lJ3JNwoAAAAQfH3VV9vttJLkThaxtTfC NNTP-Posting-Host: 146.5.2.231 References: <89128f73-fcc5-4e57-8067-d09877ba0211n@googlegroups.com> <6ca041f3-2669-4497-9548-2f17666702a6n@googlegroups.com> <8f7d1d02-c5f0-4ed5-8003-09c6f467d63cn@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <65c6df66-7ccf-4f8b-96a1-19bf394c473dn@googlegroups.com> Subject: Re: array from static predicate on enumerated type From: Shark8 Injection-Date: Mon, 15 Mar 2021 17:53:19 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:61530 List-Id: On Monday, March 15, 2021 at 8:16:58 AM UTC-6, Matt Borchers wrote: > On Friday, March 12, 2021 at 11:55:54 PM UTC-5, Randy Brukardt wrote:=20 > > Just don't use them with obsolete data structures. :-) > I can't tell if you are you being facetious? If not, can you give me some= reasons on why you think arrays are obsolete data structures? To me, they = remain one of the basic building blocks of all programs. They are a basic building-block, yes. But they *AREN'T* maps, nor are they functions... despite the tendency to t= hink of them as nails for your hammer (Array), this really isn't the case..= . and now that Ada has Ada.Containers.Indefinite_Ordered_Maps it really is = an obsolete data-structure for mapping in most cases. (Exceptions exist for= things like finite-state machines and virtual-machine instruction-sets whe= re you're working with a uniform/near-uniform collection and/or things like= embedded.)