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!feeder.eternal-september.org!gandalf.srv.welterde.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Ada Successor Language Date: Mon, 4 Jun 2018 16:17:13 -0500 Organization: JSA Research & Innovation Message-ID: References: <5e86db65-84b9-4b5b-9aea-427a658b5ae7@googlegroups.com> <217213441.549636947.114978.laguest-archeia.com@nntp.aioe.org> Injection-Date: Mon, 4 Jun 2018 21:17:13 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="3461"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Original X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader02.eternal-september.org comp.lang.ada:52932 Date: 2018-06-04T16:17:13-05:00 List-Id: >Luke A. Guest" wrote in message >news:217213441.549636947.114978.laguest-archeia.com@nntp.aioe.org... > Mehdi Saada <00120260a@gmail.com> wrote: > >>> We should adopt the common C shorthand operators, -=, +=, etc. >> What's the problem with @ ? It's more elegant and versatile. >> > > The proposal is to use +:=, -:=, etc which is ok but a little weird. Which has been extensively discussed by the ARG but rejected. There's both technical issues (given the possibility of overloading, "A +:= B" cannot always be equivalent to "A := A + B") and the ugliness factor. > The other proposal is to use @ as the lhs shorthand. This is in Ada 2020. I believe GNAT already supports it (in extensions mode). It's a lot more flexible since it can be used in any function or attribute -- no restriction to operators. Randy.