From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: G. B. Newsgroups: comp.lang.ada Subject: Re: Latest suggestion for 202x Date: Mon, 17 Jun 2019 16:48:47 -0000 (UTC) Organization: A noiseless patient Spider Message-ID: References: <728c4668-8fa0-4a57-a502-2bf476fc3940@googlegroups.com> <67a4abcc-6a33-40af-a3c4-6855b3bf8226@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Injection-Date: Mon, 17 Jun 2019 16:48:47 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="959933ddd933406c617513567cb1116e"; logging-data="26067"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19eBy6OztuvXcA39cNUbdmH33bptTVmhI0=" User-Agent: NewsTap/5.3.4 (iPhone/iPod Touch) Cancel-Lock: sha1:/J+oVRAzl/s1OHIT/ANCuKOer/Y= sha1:VfiulCsAFcmy+9TGVLKwh8ku2UA= Xref: reader01.eternal-september.org comp.lang.ada:56665 Date: 2019-06-17T16:48:47+00:00 List-Id: John Perry wrote: > On Sunday, June 16, 2019 at 2:34:05 PM UTC-5, Optikos wrote: >> 2) Algol-family languages (especially the widely-influential Algol60 and >> the otherwise-influential-on-Ada Algol68) utilize brackets [] for array >> indexing. Nearly all other programming languages (which often are >> little more than Algol60 rejiggered a little bit) have followed Algol's >> lead on array indexing via bracket [] syntax. > > One exception to this rule is Eiffel, which uses the @ operator. I > decided to see if I could find a summary, and [1] has it. The only really > strange one IMHO is Haskell, which uses !. Since ‘!’ is sometimes used as a projection _operator_, maybe something more valuable can be focused: What do you want to do with the indexed components? Assume an expression of the intended operations on array elements, as opposed to them occurring all over the place. The old and the new *for* loops illustrate, but only outside the loop body.