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,bc1361a952ec75ca X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-08-02 00:51:02 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsmm00.sul.t-online.com!t-online.de!news.t-online.com!not-for-mail From: Stefan Nobis Newsgroups: comp.lang.ada Subject: Re: How to make Ada a dominant language Date: 01 Aug 2001 15:48:58 +0200 Organization: ESN - EDV-Beratung, Sicherheit, Netzbetreuung Message-ID: <87g0bblwl1.fsf@520075220525-0001.dialin.t-online.de> References: <3B6555ED.9B0B0420@sneakemail.com> <9ff447f2.0107301653.c8f5e94@posting.google.com> <3B6624E6.DF734E5C@sneakemail.com> <9ff447f2.0107311725.5af099ae@posting.google.com> <3B6784C6.200B0B47@sneakemail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.t-online.com 996738611 04 23790 ns7nSuzVSqa4fi 010802 07:50:11 X-Complaints-To: abuse@t-online.com X-Sender: 520075220525-0001@t-dialin.net Xref: archiver1.google.com comp.lang.ada:11045 Date: 2001-08-01T15:48:58+02:00 List-Id: Russ <18k11tm001@sneakemail.com> writes: > > Take a look at the code (proposed new Ada): > > > > if A = 0 then > > A = 1; > > end if; > > > > rather than (the original Ada): > > > > if A = 0 then > > A := 1; > > end if; > > I think Python has an extremely simple solution to this so-called > "problem". Python simply disallows assignment inside an "if" You missed the point: There is no problem with assignment versus equality but a problem with the readabilty of the code! In the later case a human reader is able to distinguish between assignment and equality very ease and at first glance, in the first case he has to take a second look to see, if "=" is used as assignment or as equality. That's the problem. And Ada is made for better readabilty so the later version is the better one. It has nothing to do with the problems in C(++)! -- Until the next mail..., Stefan.