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 11:41:51 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!newsfeed.stueberl.de!proxad.net!proxad.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 19:40:41 +0100 NNTP-Posting-Host: 80.195.75.181 X-Complaints-To: abuse@blueyonder.co.uk X-Trace: news-binary.blueyonder.co.uk 1055788910 80.195.75.181 (Mon, 16 Jun 2003 18:41:50 GMT) NNTP-Posting-Date: Mon, 16 Jun 2003 18:41:50 GMT Organization: blueyonder (post doesn't reflect views of blueyonder) Xref: archiver1.google.com comp.lang.ada:39267 Date: 2003-06-16T19:40:41+01:00 List-Id: On 16/6/03 19:19, in article bcl1pu$jscm4$1@ID-175126.news.dfncis.de, "Vinzent Hoefler" wrote: >>> 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. > > I'd say something similar to the the already proposed (or at least > mentioned) "<>" would be good enough for me. > > Or perhaps we should think about a longer one to discourage people to > use it everywhere in their code. ;) All the proposals so far have their problems: idem (or any new reserved word) but: a new reserved word all but: could be a typo for "p.all" <> but: consider "<> < <>+1" & but: consider "& & &" @ (or # or ? or $ or %) but: wrong associations? Despite the possibility of suggesting wrong associations, I'm tending to one of the latter notations (this is about brevity after all), or perhaps "all". If " were not a string quote, it would be good, being used already as an abbreviation for 'ditto'. 8-) -- Bill-Findlay chez blue-yonder.co.uk ("-" => "")