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-Thread: 103376,c39ad3e35a7690a9 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Received: by 10.68.238.198 with SMTP id vm6mr7437987pbc.3.1329507994396; Fri, 17 Feb 2012 11:46:34 -0800 (PST) Path: wr5ni36816pbc.0!nntp.google.com!news2.google.com!goblin2!goblin.stu.neva.ru!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: Convention for naming of anything Date: Fri, 17 Feb 2012 20:46:32 +0100 Organization: Ada @ Home Message-ID: References: NNTP-Posting-Host: g5KXXei1ehLN149F0y/3gg.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/11.61 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2012-02-17T20:46:32+01:00 List-Id: Le Thu, 16 Feb 2012 18:44:46 +0100, Yannick Duch=C3=AAne (Hibou57) = a =C3=A9crit: > 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 na= me = > 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, an= d = I feel X_2 looks ugly compared to X2. Two primes can then be written X3,= = three as X4 and so on. That's personal feeling after dirty personal tests, comments about = readability and understandability are still welcome (whether or not I = agree with comments). -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity