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=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,c39ad3e35a7690a9 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Received: by 10.68.241.37 with SMTP id wf5mr7692920pbc.4.1329515632376; Fri, 17 Feb 2012 13:53:52 -0800 (PST) Path: wr5ni37159pbc.0!nntp.google.com!news2.google.com!news.glorb.com!feeder.erje.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!gegeweb.org!aioe.org!.POSTED!not-for-mail From: Manuel Collado Newsgroups: comp.lang.ada Subject: Re: Convention for naming of anything Date: Fri, 17 Feb 2012 22:53:49 +0100 Organization: Aioe.org NNTP Server Message-ID: References: NNTP-Posting-Host: M+K1lAmmZ+VhylKQ4W35nQ.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 5.1; rv:9.0) Gecko/20111222 Thunderbird/9.0.1 X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Date: 2012-02-17T22:53:49+01:00 List-Id: El 17/02/2012 20:46, Yannick Duchêne (Hibou57) escribió: > Le Thu, 16 Feb 2012 18:44:46 +0100, Yannick Duchêne (Hibou57) > a écrit: >> With functional representation in mind, when an object X' is a value >> derived from an object X in a recursive algorithm, which way do you name >> both X and X', as the Prime symbol is not allowed in Ada names? >> >> * X1 and X2 ? >> * X_1 and X_2 ? >> * X and X2 ? >> * X and X_2 ? >> * X and X_Prime ? >> * X and New_X ? >> * X and Derived_X ? >> >> Note that the question may makes sense with loops too. > > After some testing (writing then reading later), seems X and X2 is the > best. Others looks too long compared to a Prime sign added to a name, and I > feel X_2 looks ugly compared to X2. Two primes can then be written X3, > three as X4 and so on. At first glance, it seems more "natural": X -> X X' -> X1 X'' -> X2 etc. > > That's personal feeling after dirty personal tests, comments about > readability and understandability are still welcome (whether or not I agree > with comments). -- Manuel Collado - http://lml.ls.fi.upm.es/~mcollado