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!news.eternal-september.org!feeder.eternal-september.org!news.swapon.de!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Comments requested for a couple of Ada-Comments submissions Date: Fri, 11 Jul 2014 20:26:44 +0300 Organization: Tidorum Ltd Message-ID: References: <58Kvv.9105$Zt3.1101@fx02.iad> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: individual.net ZWeA0ckHEFe6un7UPZTWQAcd8hcsaMHH3g17YnWfUyBe2Do+WS Cancel-Lock: sha1:AaqufU83pjPJEks38hK201wUekk= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.8; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 In-Reply-To: Xref: news.eternal-september.org comp.lang.ada:20873 Date: 2014-07-11T20:26:44+03:00 List-Id: On 14-07-11 18:35 , Adam Beneschan wrote: > On Thursday, July 10, 2014 9:56:36 PM UTC-7, Shark8 wrote: > >>> One suggested syntax would be: >>> A := (A changing C => D, E => F); >>> or >>> A := (A updating C => D, E => F); >>> where A is a record and C and E are record components. > >> I don't really like the new keyword idea. > > A := (C => D, E => F, others => A.others); To me, this looks too much like a normal aggregate. Only at the end, from the new form "A.others", do we see that it is a partial aggregate. Also, the duplication of the word "others" is a bit ugly, and "A.others" does not really mean anything by itself; its meaning depends on the components listed before the "others" part. How about: (C => D, E => F, then others => A) or (C => D, E => F, and others => A) -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .