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.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,1b41412c7bc28c47 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!border1.nntp.dca.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!news.k-dsl.de!news.motzarella.org!motzarella.org!Colin_Paul_Gloster From: Colin Paul Gloster Newsgroups: comp.lang.ada Subject: Re: Suffix _T for types found good Date: Thu, 7 Aug 2008 16:10:02 +0100 Organization: A noiseless patient Spider Message-ID: References: <2e9ebb23-a68b-43cf-8871-febcb173f951@56g2000hsm.googlegroups.com> <4899d2af$0$19731$4d3efbfe@news.sover.net> Reply-To: Colin Paul Gloster Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Trace: feeder.motzarella.org U2FsdGVkX19wrOw8s9vw88yYVw/XVqFnghyHK1yQoY6WlsKavF45xWNRanWSAbFVosS5hEhTwEYy/zxHq91ZCWB8WWGJeOvPqccocXkGhndFyTPTx/iMC/M5s6vJZU0JhbF1eon1Kf8jv2hNZtuZAQ== X-Complaints-To: Please send complaints to abuse@motzarella.org with full headers NNTP-Posting-Date: Thu, 7 Aug 2008 15:10:04 +0000 (UTC) In-Reply-To: X-Auth-Sender: U2FsdGVkX1/uMT01tkx+rdV7tMOKozHNCTunsmRnccQkpKocoxWGFv2CvMKcByWFLY28hzwwbKU= Cancel-Lock: sha1:1hE/NN0CBJHzm+3AJesUfrJubd8= X-X-Sender: Colin_Paul_Gloster@gian.fis.uc.pt Xref: g2news1.google.com comp.lang.ada:1506 Date: 2008-08-07T16:10:02+01:00 List-Id: On Wed, 6 Aug 2008, Steve wrote: |-----------------------------------------------------------------------------| |""Peter C. Chapin" wrote in message | |news:4899d2af$0$19731$4d3efbfe@news.sover.net... | |> amado.alves@gmail.com wrote: | |> | |>> Regarding "_T" vs. "_Type" I am convinced the former is better but I | |>> have to leave the advocacy for later. Or for others ;-) | |> | |> Personally I prefer _Type. Yes it is more verbose but it follows the | |> convention of using fully spelled out words for things. For access types I | |> [..] | | | |I go with _Type too, [..]" | |-----------------------------------------------------------------------------| I prefer _Type instead of _T. |-----------------------------------------------------------------------------| |"For years the convention at work (I'm not sure where it came from) was to | |precede type names with a lower case "a" or "an" so a declaration would be | |something like: | | | | index : anIndex; | | buffer : aBuffer; | | | |Since I used the convention for years I can say it helped readability a lot, | |but every once in a while I did run into cases where I would want a variable | |name to start with a or an and would have to choose something different, or | |accept some "different" looking code." | |-----------------------------------------------------------------------------| I do not remember having had seen this convention before. I like a variant of it: a_buffer instead of aBuffer.