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.135.231 with SMTP id pv7mr9188185pbb.8.1329564803380; Sat, 18 Feb 2012 03:33:23 -0800 (PST) Path: wr5ni39364pbc.0!nntp.google.com!news2.google.com!news.glorb.com!feeder.erje.net!news2.arglkargh.de!noris.net!newsfeed.arcor.de!newsspool1.arcor-online.net!news.arcor.de.POSTED!not-for-mail Date: Sat, 18 Feb 2012 12:32:40 +0100 From: Georg Bauhaus User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:8.0) Gecko/20111105 Thunderbird/8.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Convention for naming of anything References: In-Reply-To: Message-ID: <4f3f8c54$0$6579$9b4e6d93@newsspool3.arcor-online.net> Organization: Arcor NNTP-Posting-Date: 18 Feb 2012 12:32:36 CET NNTP-Posting-Host: 254f9c34.newsspool3.arcor-online.net X-Trace: DXC=94Ac9LeTLh5;]cDoEWD6A4McF=Q^Z^V384Fo<]lROoR18kFjeYMIE?PCY\c7>ejV8i7AaCl>]5<8OJFQa On 16.02.12 18:44, Yannick Duchêne (Hibou57) wrote: > Le Thu, 09 Feb 2012 22:10:12 +0100, Yannick Duchêne (Hibou57) a écrit: > >> Hi people out there, > > 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 ? XX for x', XS for lists. If both a letter with prime and a letter with plural s occur in the same function, I'd choose a different prefix letter for either.