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 01:32:58 PST Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news.tele.dk!193.251.151.101!opentransit.net!wanadoo.fr!not-for-mail From: Pascal Obry Newsgroups: comp.lang.ada Subject: Re: How to make Ada a dominant language Date: 02 Aug 2001 10:32:05 +0200 Organization: Home - http://perso.wanadoo.fr/pascal.obry Message-ID: 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> <87g0bblwl1.fsf@520075220525-0001.dialin.t-online.de> NNTP-Posting-Host: mix-limoges-101-2-30.abo.wanadoo.fr Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: wanadoo.fr 996741177 2550 193.248.40.30 (2 Aug 2001 08:32:57 GMT) X-Complaints-To: abuse@wanadoo.fr NNTP-Posting-Date: 2 Aug 2001 08:32:57 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.0.104 Xref: archiver1.google.com comp.lang.ada:11048 Date: 2001-08-02T08:32:57+00:00 List-Id: Stefan Nobis writes: > 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. I agree and what about: C : Integer; A : Boolean; if A = True then A = C = 1; end if; Of course, the current implementation is quite clear: if A = True then A := C = 1; end if; I really think that this whole thread serve to nothing. Russ, the best way to have your proposal intregrated at some point is to propose it to the ARG. Maybe they will understand better than us the added value! Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://perso.wanadoo.fr/pascal.obry --| --| "The best way to travel is by means of imagination"