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!reader02.eternal-september.org!news.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Community Input for the Maintenance and Revision of the Ada Programming Language Date: Sat, 2 Sep 2017 19:08:46 +0200 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <4dc188de-802b-41ad-9cdd-b8246eb9a1c7@googlegroups.com> <47cc6474-8b75-4644-92d0-bd1f694c20e7@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 2 Sep 2017 17:04:22 -0000 (UTC) Injection-Info: mx02.eternal-september.org; posting-host="fcd71e5c4b838b2544d427fbd0b13338"; logging-data="5566"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/HcAszfmm68q0it4vjtCLZvNYky4gcw+s=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 In-Reply-To: <47cc6474-8b75-4644-92d0-bd1f694c20e7@googlegroups.com> Content-Language: en-US Cancel-Lock: sha1:c6UdQrrFKLxNMCpn46SKzaPHa84= Xref: news.eternal-september.org comp.lang.ada:47891 Date: 2017-09-02T19:08:46+02:00 List-Id: On 09/02/2017 12:49 PM, Vincent DIEMUNSCH wrote: > > A(+i) simply means A(A'First +i). And so it should simply be written A (A'First + I). What would A(+Red) mean? Indices don't have to be numeric. A(+I) is already defined for numeric I. This would not be backward compatible, so it's very unlikely to happen. Finally, keystroke-saving constructs like this, or +=, are contrary to the explicit design goals of the language. The ARM Introduction, under Design Goals, says of the design of the language that "emphasis was placed on program readability over ease of writing" (wording unchanged since at least Ada 83). Since you can write A (A'First + I), the only possible reason for your proposal is to save a few keystrokes. If you want fewer keystrokes, use APL. -- Jeff Carter It's better to be root than to reboot. 119