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-16 04:24:57 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!fu-berlin.de!uni-berlin.de!213.200.246.247!not-for-mail From: Vinzent Hoefler Newsgroups: comp.lang.ada Subject: Re: Ideas for Ada 200X Date: Mon, 16 Jun 2003 13:23:26 +0200 Organization: JeLlyFish software Message-ID: References: <3EE7CC70.E1FD3A67@adaworks.com> NNTP-Posting-Host: 213.200.246.247 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: fu-berlin.de 1055762695 18935857 213.200.246.247 (16 [175126]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:39236 Date: 2003-06-16T13:23:26+02:00 List-Id: Steve wrote: >"Vinzent Hoefler" wrote in message >news:bcbu9i$hgu5j$1@ID-175126.news.dfncis.de... >[snip] >> >Yeah, but after actually spending a lot of time reading code, I've never= had >a problem distinguishing '=3D' from '+=3D', Well, that's probably easier. :) >but I have had problems >distinguishing: > >shiftTally(shift)(dayOfWeek(month).tallyIndex) > .sortTally(s).nbRejects :=3D >shiftTally(shift)(dayOfWeekmonth).tallyIndex).sortTally(s).nbRejects + = 1; > >from > >shiftTally(shift)(dayOfWeek(month).tallyIndex) > .sortTally(s).nbRejects :=3D >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. I do. :-) I don't want the one who might come after me, going through the same shit again. >>And you probably heard about: Ada is for ease of reading, not writing. > >In my opinion the benefit of +=3D has nothing to do with efficiency or = ease in >writing. It's all about readability. In *some* cases it might be so. In *most* cases it won't. And for your example: I don't see, why |shiftTally(shift)(dayOfWeek(month).tallyIndex) | .sortTally(s).nbRejects +=3D 1; should be easier to distinguish from >shiftTally(shift)(dayOfWeek(month).tallyIndex) > .sortTally(s).nbRejects :=3D 1; In either case you have to look twice anyway. Vinzent. --=20 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.