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 X-Google-Thread: 103376,bc1361a952ec75ca X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-07-31 04:19:59 PST Message-ID: <3B66939A.F14CEF80@amsjv.com> Date: Tue, 31 Jul 2001 12:16:42 +0100 From: Philip Anderson Organization: Alenia Marconi Systems ISD X-Mailer: Mozilla 4.7 [en] (WinNT; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: How to make Ada a dominant language References: Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit NNTP-Posting-Host: cwmwkn0612.cwmbran.gecm.com X-Trace: 31 Jul 2001 12:07:07 GMT, cwmwkn0612.cwmbran.gecm.com Path: archiver1.google.com!newsfeed.google.com!newsfeed.stanford.edu!newsfeeds.belnet.be!news.belnet.be!colt.net!newspeer.clara.net!news.clara.net!btnet-peer!btnet-peer0!btnet-peer1!btnet-feed3!btnet!newreader.ukcore.bt.net!pull.gecm.com!cwmwkn0612.cwmbran.gecm.com Xref: archiver1.google.com comp.lang.ada:10860 Date: 2001-07-31T12:16:42+01:00 List-Id: Keith Thompson wrote: > > 18k11tm001@sneakemail.com (Russ) writes: > > 4. Use "=" instead of "=>" for passing arguments by named association, > > as in Python. > > "Proc(Foo = Bar)" is already a valid Ada procedure call; it passes the > value True if Foo and Bar are equal, False if they aren't. But Russ would replace that with "Proc(Foo == Bar)", so no ambiguity :-) Consider the following (in NewAda, Ada in comments): Integer : Foo -- Foo : Integer; Integer : Bar -- Bar : Integer; procedure Proc (Integer in : Foo) -- procedure Proc (Foo : in Integer); procedure Proc (Boolean in : A) -- procedure Proc (A : in Boolean); Proc (Foo = Bar) -- Proc (Foo => Bar); Proc (Foo == Bar) -- Proc (Foo = Bar); Proc (Foo >= Bar) -- Proc (Foo >= Bar); "Proc(Foo = Bar)" would certainly confuse existing Ada programmers, but Ada is potentially confusing too. I'd always write something like "Proc (A => (Foo = Bar))" to show that the "Foo = Bar" is an expression -- hwyl/cheers, Philip Anderson Alenia Marconi Systems Cwmbr�n, Cymru/Wales