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-06-13 19:12:55 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!arclight.uoregon.edu!wn13feed!worldnet.att.net!204.127.198.203!attbi_feed3!attbi.com!sccrnsc04.POSTED!not-for-mail From: "Steve" Newsgroups: comp.lang.ada References: <3EE7CC70.E1FD3A67@adaworks.com> Subject: Re: Ideas for Ada 200X X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 Message-ID: NNTP-Posting-Host: 12.211.13.75 X-Complaints-To: abuse@attbi.com X-Trace: sccrnsc04 1055556768 12.211.13.75 (Sat, 14 Jun 2003 02:12:48 GMT) NNTP-Posting-Date: Sat, 14 Jun 2003 02:12:48 GMT Organization: AT&T Broadband Date: Sat, 14 Jun 2003 02:12:48 GMT Xref: archiver1.google.com comp.lang.ada:39151 Date: 2003-06-14T02:12:48+00:00 List-Id: "Vinzent Hoefler" wrote in message news:bcbu9i$hgu5j$1@ID-175126.news.dfncis.de... [snip] > >|count += 1 > >could easily be parsed as > >|count := 1 > >on the first glance. You have to look harder to see that this is *not* >an assignment. Yeah, but after actually spending a lot of time reading code, I've never had a problem distinguishing '=' from '+=', but I have had problems distinguishing: shiftTally(shift)(dayOfWeek(month).tallyIndex) .sortTally(s).nbRejects := shiftTally(shift)(dayOfWeekmonth).tallyIndex).sortTally(s).nbRejects + 1; from shiftTally(shift)(dayOfWeek(month).tallyIndex) .sortTally(s).nbRejects := shiftTally(shift)(dayOfWeekmonth).tallyIndex).sortTally(t).nbRejects + 1; You might argue that the code was not written well. I don't know about you but I don't generally re-write blocks of code I'm maintaining just because it doesn't look nice. [snip] > >And you probably heard about: Ada is for ease of reading, not writing. > In my opinion the benefit of += has nothing to do with efficiency or ease in writing. It's all about readability. I think we've about discussed this one out. Steve (The Duck) > > Vinzent. > > -- > Parents strongly cautioned -- this posting is intended for mature > audiences over 18. It may contain some material that many parents > would not find suitable for children and may include intense violence, > sexual situations, coarse language and suggestive dialogue.