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 00:25:40 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news.uchicago.edu!yellow.newsread.com!netaxs.com!newsread.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.r-kom.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: Fri, 13 Jun 2003 09:24:11 +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 1055489139 18380979 213.200.246.247 (16 [175126]) X-Newsreader: Forte Agent 1.8/32.548 Xref: archiver1.google.com comp.lang.ada:39083 Date: 2003-06-13T09:24:11+02:00 List-Id: Russ wrote: >I happen to think this is better even for shorter variable names. For >example, I think > > count +=3D 1 > >is cleaner and more elegant than > > count :=3D count + 1 > >Why? Because the latter has redundant information. No. It says where to assign on the left hand side and what to assign on the right hand side. >Why repeat the >variable name if you don't need to? Because |count +=3D 1 could easily be parsed as |count :=3D 1 on the first glance. You have to look harder to see that this is *not* an assignment. >With +=3D, if I decide to change the >name, I only need to change it in one place on that line, for example. I don't decide to change a name, I decide to change a construct. And you probably heard about: Ada is for ease of reading, not writing. >Perhaps I am obsessive minimalist, but the latter construct bothers >me. Well, the former construct is what bothers *me*. 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.