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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,54889de51045a215 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-10-03 09:22:19 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: igouy@yahoo.com (Isaac Gouy) Newsgroups: comp.lang.ada Subject: Re: += in ada Date: 3 Oct 2003 09:22:19 -0700 Organization: http://groups.google.com Message-ID: References: <3F7316F7.219F@mail.ru> NNTP-Posting-Host: 12.65.109.178 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1065198139 15419 127.0.0.1 (3 Oct 2003 16:22:19 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Fri, 3 Oct 2003 16:22:19 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:161 Date: 2003-10-03T09:22:19-07:00 List-Id: "Frank J. Lhota" wrote in message news:... > "Peter Amey" wrote in message > news:ble3d6$aus9m$1@ID-69815.news.uni-berlin.de... > > Surely, if you have minimalist sensibilties you would replace: > > > > "count = count + 1" with "False"? > > I know that using "=" for assignment goes all the way back to Fortran and > Basic, but it has always been a source of confusion. That's why I would > prefer ":=" for assignment, and "+:=" for the increment operator. A variation on that theme is used in CLAIRE := for assignment :+ for increment > The best symbol for assignment that I have seen is a left arrow, e.g. "count > ? count + 1". Visually, it is quite suggestive of assigment (the value on > the right goes into the variable on the left) and it would never be confused > with testing for equality. Both APL and early versions of Smalltalk used the > left arrow for assignment. As far as I can tell, the only reason why the > left arrow is not used more often is that it is not a standard 7-bit ASCII > character.