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-16 10:47:46 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!cyclone.bc.net!snoopy.risq.qc.ca!chi1.webusenet.com!news.webusenet.com!peer02.cox.net!peer01.cox.net!cox.net!news-hub.cableinet.net!blueyonder!internal-news-hub.cableinet.net!news-binary.blueyonder.co.uk.POSTED!53ab2750!not-for-mail User-Agent: Microsoft-Entourage/10.1.1.2418 Subject: Re: Ideas for Ada 200X From: Bill Findlay Newsgroups: comp.lang.ada Message-ID: References: <3EE7CC70.E1FD3A67@adaworks.com> <3EECA772.4B662024@adaworks.com> Mime-version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-transfer-encoding: 7bit Date: Mon, 16 Jun 2003 18:46:37 +0100 NNTP-Posting-Host: 80.195.75.181 X-Complaints-To: abuse@blueyonder.co.uk X-Trace: news-binary.blueyonder.co.uk 1055785665 80.195.75.181 (Mon, 16 Jun 2003 17:47:45 GMT) NNTP-Posting-Date: Mon, 16 Jun 2003 17:47:45 GMT Organization: blueyonder (post doesn't reflect views of blueyonder) Xref: archiver1.google.com comp.lang.ada:39264 Date: 2003-06-16T18:46:37+01:00 List-Id: On 16/6/03 18:16, in article hYmHa.6881$Hb.124073@news4.e.nsc.no, "Tarjei T. Jensen" wrote: > Richard Riehle wrote: >> If we adopt this syntax, in Ada, we will need to include some rules in the >> language to enable the compiler to discern a clear difference between >> the += and :=. That is, in Ada's current model, we want to compiler to >> be able to tell us when a construct is a mistake or warn us when it will >> potentially create an incorrect execution. > > How would you think about > i := () +1; I would think: this looks very error-prone. I think any syntax for an "idem" feature should not easily result from a simple typographical error in writing a correct expression. -- Bill-Findlay chez blue-yonder.co.uk ("-" => "")