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!.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: Fri, 8 Sep 2017 17:49:15 +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> <7d014624-d143-4564-abfa-802534693644@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Fri, 8 Sep 2017 15:49:16 -0000 (UTC) Injection-Info: reader.eternal-september.org; posting-host="326cf725e180856db45227f8b04817e2"; logging-data="4095"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX18muMzeCQ+/Z88kaS93+hV7C1AXyJ5PIM4=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 In-Reply-To: <7d014624-d143-4564-abfa-802534693644@googlegroups.com> Content-Language: en-US X-Mozilla-News-Host: news://news.eternal-september.org Cancel-Lock: sha1:Hyoknf2G6GpI6soLh9dnydcT5Ho= Xref: news.eternal-september.org comp.lang.ada:47982 Date: 2017-09-08T17:49:15+02:00 List-Id: On 09/06/2017 06:38 PM, Vincent DIEMUNSCH wrote: > Le samedi 2 septembre 2017 19:08:48 UTC+2, Jeffrey R. Carter a écrit : >> >> What would A(+Red) mean? Indices don't have to be numeric. > > But an array index needs to be isomorphic to an Integer. It's an array ! Not a dictionnary, or a hash table. Sometimes a map (sometimes called a dictionary by languages intended for people not smart enough to understand "map":) is just an array. A hash table needs some extra support, but is mostly an array. But the fact remains that arrays don't have to have numeric indices. Arrays indexed by enumeration types are very useful. Your proposal would have to have a well defined meaning for them, too. > Sure, it is not fully backward compatible. But by the way, only the absence of any evolution is 100% backward compatible, isn't it ? Demonstrably untrue. > :-). Ok, but the argument, always used to defend the verbose syntax of Ada, is a little bit weak, because we use high level languages precisely to write less code ! I use them to create readable, correct S/W. How many keystrokes it takes to do that is immaterial. -- Jeff Carter "C++: The power, elegance and simplicity of a hand grenade." Ole-Hjalmar Kristensen 90