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-07-31 01:21:08 PST From: "Martin Dowie" Newsgroups: comp.lang.ada References: <3B6555ED.9B0B0420@sneakemail.com> <9ff447f2.0107301653.c8f5e94@posting.google.com> <3B6624E6.DF734E5C@sneakemail.com> <3b66520b@pull.gecm.com> <3B665A01.54315D0C@sneakemail.com> Subject: Re: How to make Ada a dominant language Date: Tue, 31 Jul 2001 09:20:16 +0100 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 5.00.2314.1300 X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300 NNTP-Posting-Host: sg2c11210.dsge.edinbr.gmav.gecm.com Message-ID: <3b666801$1@pull.gecm.com> X-Trace: 31 Jul 2001 09:10:41 GMT, sg2c11210.dsge.edinbr.gmav.gecm.com Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.icl.net!dispose.news.demon.net!demon!btnet-peer0!btnet-peer1!btnet-feed3!btnet!newreader.ukcore.bt.net!pull.gecm.com!sg2c11210.dsge.edinbr.gmav.gecm.com Xref: archiver1.google.com comp.lang.ada:10843 Date: 2001-07-31T09:20:16+01:00 List-Id: Kind of missed the point (just a little :-), The '1' could as easily be replaced by 'Y', my fault for not choosing a clearer example. "X = 4" has a specific mathematical meaning, "X == 4" does not (or at least non that I'm aware of). Ada (and others) uses "X = 4" in the same way as the mathematical meaning, i.e. "is equivalent to" not "is assigned to". I don't particularly like the "+=" style, it seem counter intuitive that this aids readability. Our job is to code, not encode. Russ Paielli <18k11tm001@sneakemail.com> wrote in message news:3B665A01.54315D0C@sneakemail.com... > Martin Dowie wrote: > > > > Russ Paielli <18k11tm001@sneakemail.com> wrote in message > > news:3B6624E6.DF734E5C@sneakemail.com... > > > But "x = 4" means that, immediately after the statement is executed, x > > > indeed equals 4. I don't see a problem with using "=" for both > > > > so what does "X = X + 1" mean? This was part of the reason > > why ":=" has been used in many languages (before Ada was ever > > conceived). > > Actually, I like the C way of writing this: "x += 1". It's a minimal > form. It's much cleaner if the variable name is long. I think C got this > one right.