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=-2.9 required=5.0 tests=BAYES_00,MAILING_LIST_MULTI autolearn=unavailable autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,60e2922351e0e780 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-05 14:47:29 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!skynet.be!skynet.be!freenix!enst.fr!melchior!cuivre.fr.eu.org!melchior.frmug.org!not-for-mail From: "Alexandre E. Kopilovitch" Newsgroups: comp.lang.ada Subject: Re: Clause "with and use" Date: Thu, 6 Nov 2003 00:48:14 +0300 (MSK) Organization: Cuivre, Argent, Or Message-ID: References: NNTP-Posting-Host: lovelace.ada-france.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: melchior.cuivre.fr.eu.org 1068072292 83682 80.67.180.195 (5 Nov 2003 22:44:52 GMT) X-Complaints-To: usenet@melchior.cuivre.fr.eu.org NNTP-Posting-Date: Wed, 5 Nov 2003 22:44:52 +0000 (UTC) To: comp.lang.ada@ada-france.org Return-Path: In-Reply-To: ; from Russ X-Mailer: Mail/@ [v2.44 MSDOS] X-Virus-Scanned: by amavisd-new-20030616-p5 (Debian) at ada-france.org X-BeenThere: comp.lang.ada@ada-france.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Gateway to the comp.lang.ada Usenet newsgroup List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Xref: archiver1.google.com comp.lang.ada:2110 Date: 2003-11-06T00:48:14+03:00 Russ wrote: > By the way, if a C/C++ programmer writes x = x + 2; in lieu of x += 2, > chances are he is not a top-notch programmer. But Ada forces such bad > style, and that's bad style itself. It is certainly a very interesting topic - who is ordained to decide whether someone is a top-notch programmer or not -:) , but leaving that point aside, I just want to remind that Ada does not force that (x := x + 2) style. Moreover, in many cases Inc(x, 2) or Incr(x,2) is surely preferable. Personally, I use both forms, using the x := x + 2 form when I perceive that the formula may be different in some, more or less probable, variation of the problem; and I use Pascal-like form Inc(x,2) when I consider that operation as charasteristic for the problem (or particular solution method) at that point. Alexander Kopilovitch aek@vib.usr.pu.ru Saint-Petersburg Russia