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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,38fc011071df5a27 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-11 17:39:53 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!feed2.news.rcn.net!rcn!elnk-nf1-atl!newsfeed.earthlink.net!stamper.news.atl.earthlink.net!harp.news.atl.earthlink.net!not-for-mail From: Richard Riehle Newsgroups: comp.lang.ada Subject: Re: Ideas for Ada 200X Date: Wed, 11 Jun 2003 17:42:24 -0700 Organization: AdaWorks Software Engineering Message-ID: <3EE7CC70.E1FD3A67@adaworks.com> References: <6a90b886.0305262344.1d558079@posting.google.com> Reply-To: richard@adaworks.com NNTP-Posting-Host: 41.b2.40.7a Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Server-Date: 12 Jun 2003 00:39:53 GMT X-Mailer: Mozilla 4.7 [en] (Win98; I) X-Accept-Language: en Xref: archiver1.google.com comp.lang.ada:39017 Date: 2003-06-12T00:39:53+00:00 List-Id: Russ wrote: > Preben Randhol wrote in message news:... > > Russ wrote: > > > Secondly, I'll bet that far more programmers use "+=", when given the > > > option, than don't. How many C++ or Python programmers do you think > > > write var1 = var1 + var2 when they can write var1 += var2? Not many > > > good ones, I'll bet. > > > > What about *= and /= ? > > I think those get used quite a bit too, though probably not as much as > += and -=. I think it is important to consider this proposed addition to the language in terms of the underlying goal of Ada. I paraphrase, A language design that enables a compiler to detect and report on the maximum number of errors as early in the development process as possible. The implications of that design goal include a strong model for confirmability, a high degree of internal consistency, along with a syntax and a semantics that supports that goal. Can this goal be supported with +=, *=, /=, and other variations from the C family of languages? I submit that it can. Can there be some underlying benefit from these variations that might improve optimization of code? I think that is still not proven, even though there cases in C and C++ where there is a difference. Should we do what can be done simply because it can be done? We must ask ourselves, "At what price?" Will it help make Ada more popular? Hardly. Will it make it more readable? Not likely. Will it improve support for the above stated goal? Probably not. In the end, the argument boils down to the issue of making one language look like another, and benefits seem marginal, at best. I have yet to see anyone cite the benefits for this addition to the language. Richard Riehle