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 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1b41412c7bc28c47 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII Path: g2news1.google.com!postnews.google.com!w7g2000hsa.googlegroups.com!not-for-mail From: Martin Newsgroups: comp.lang.ada Subject: Re: Suffix _T for types found good Date: Tue, 19 Aug 2008 11:05:58 -0700 (PDT) Organization: http://groups.google.com Message-ID: References: <2e9ebb23-a68b-43cf-8871-febcb173f951@56g2000hsm.googlegroups.com> <4899d2af$0$19731$4d3efbfe@news.sover.net> NNTP-Posting-Host: 20.133.0.8 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: posting.google.com 1219169158 29000 127.0.0.1 (19 Aug 2008 18:05:58 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Tue, 19 Aug 2008 18:05:58 +0000 (UTC) Complaints-To: groups-abuse@google.com Injection-Info: w7g2000hsa.googlegroups.com; posting-host=20.133.0.8; posting-account=g4n69woAAACHKbpceNrvOhHWViIbdQ9G User-Agent: G2/1.0 X-HTTP-UserAgent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-GB; rv:1.9.0.1) Gecko/2008070208 Firefox/3.0.1,gzip(gfe),gzip(gfe) Xref: g2news1.google.com comp.lang.ada:1653 Date: 2008-08-19T11:05:58-07:00 List-Id: On Aug 7, 6:04=A0pm, Ray Blaak wrote: > Colin Paul Gloster writes: > > > =A0index : anIndex; > > =A0buffer : aBuffer; > > This is backwards to me: > > =A0 anIndex : Index; > =A0 aBuffer : Buffer; > > E.g. the value is a specific instance vs the type is general. The names s= hould > reflect that. > > -- > Cheers, =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0The Rhythm is around me, > =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0 =A0 =A0 =A0 =A0 =A0The Rhythm has control. > Ray Blaak =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0= =A0 =A0 =A0The Rhythm is inside me, > rAYbl...@STRIPCAPStelus.net =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0The Rh= ythm has my soul. Ah, but "a" (or "an_") are 'indefinite articles' in English (which this is obviously trying to replicate), i.e. they don't specify any particular instance. A variable does specify a particulary instance, so using "a_"/"an_" for them is wrong. "better names" are what are always called for :-) The_Buffer : A_Buffer; The_Index : An_Index; or My_Buffer : A_Buffer; or User_Input_Buffer : A_Buffer; etc I've used (and mandated) the "A_"/"An_" prefixes on a few projects and it does work quite well and read fine. I'll put my hand up and admit I _hate_ the noise of "_Type" - it really ought to be clear and unambiguous from language rules but isn't. :-( Cheers -- Martin