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=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-29 14:16:50 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!newsfeed2.earthlink.net!newsfeed.earthlink.net!wn14feed!wn13feed!worldnet.att.net!207.35.177.252!nf3.bellglobal.com!nf1.bellglobal.com!nf2.bellglobal.com!news20.bellglobal.com.POSTED!not-for-mail Message-ID: <3ED67534.3080704@cogeco.ca> From: "Warren W. Gay VE3WWG" User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.0.2) Gecko/20030208 Netscape/7.02 X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Ideas for Ada 200X References: <6a90b886.0305262344.1d558079@posting.google.com> <3ED41344.7090105@spam.com> <3ED46D81.FF62C34F@0.0> <3ED46E07.4340CABC@0.0> <3ED4F3FD.A0EF7079@alfred-hilscher.de> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Date: Thu, 29 May 2003 17:01:40 -0400 NNTP-Posting-Host: 198.96.223.163 X-Complaints-To: abuse@sympatico.ca X-Trace: news20.bellglobal.com 1054242102 198.96.223.163 (Thu, 29 May 2003 17:01:42 EDT) NNTP-Posting-Date: Thu, 29 May 2003 17:01:42 EDT Organization: Bell Sympatico Xref: archiver1.google.com comp.lang.ada:38016 Date: 2003-05-29T17:01:40-04:00 List-Id: Steve wrote: > "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. > > 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; > > Yeah, you can write a function to do the same thing, but it is more work > than just writing the code in the first form. > > BTW: It also turns that simple case of: > > i := i + 1; > to > i += 1; > > In my experience in C/C++ programming I have never encountered bugs due to > the use of these operators. Your mileage may vary. > > Steve > (The Duck) I've tried both sides (more on the C/C++ side). I cannot honestly say that I miss those operators in Ada. I can say, that the compactness of C and C++ works against it's readability in a big way. I would not trade readability for ++i convenience. -- Warren W. Gay VE3WWG http://home.cogeco.ca/~ve3wwg