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,FREEMAIL_FROM, LOTS_OF_MONEY autolearn=ham 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-05-30 00:26:25 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: 18k11tm001@sneakemail.com (Russ) Newsgroups: comp.lang.ada Subject: Re: Ideas for Ada 200X Date: 30 May 2003 00:26:25 -0700 Organization: http://groups.google.com/ Message-ID: References: <6a90b886.0305262344.1d558079@posting.google.com> <3ED41344.7090105@spam.com> <3ED46D81.FF62C34F@0.0> <3ED46E07.4340CABC@0.0> <3ED4F3FD.A0EF7079@alfred-hilscher.de> NNTP-Posting-Host: 63.194.87.148 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1054279585 30564 127.0.0.1 (30 May 2003 07:26:25 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 30 May 2003 07:26:25 GMT Xref: archiver1.google.com comp.lang.ada:38044 Date: 2003-05-30T07:26:25+00:00 List-Id: "Steve" wrote in message news:... > "Alfred Hilscher" wrote in message > news:3ED4F3FD.A0EF7079@alfred-hilscher.de... > > > > > [snip] > > > > > > Yeah, but Ada urgently needs some operators like "++" and "--" (i++; > > --i;) > > Personally I don't see much value in the "++" and "--" operators... but I do > like the +=, -=, *=, /= operators. Bingo! Please forget about ++ and --. > Occasionally I run into code that looks something like: > > production_total( total_class ).shift( shift_index ) := > production_total( total_class ).shift( shift_index ) + count; > > That would read a lot cleaner as: > > production_total( total_class ).shift( shift_index ) += count; Couldn't have said it better myself. And let's not forget that +=, -=, etc. also allow for more efficient in-place vector/matrix operations because they avoid the need for a temporary. If you don't understand this, that's OK, but please don't argue with me because you will be wrong.