Re: Suffix _T for types found good
- From: Colin Paul Gloster <Colin_Paul_Gloster@xxxxxxx>
- Date: Thu, 7 Aug 2008 16:10:02 +0100
On Wed, 6 Aug 2008, Steve wrote:
|-----------------------------------------------------------------------------|
|""Peter C. Chapin" <pcc482719@xxxxxxxxx> wrote in message |
|news:4899d2af$0$19731$4d3efbfe@xxxxxxxxxxxxxxxxx |
|> amado.alves@xxxxxxxxx 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.
.
- Follow-Ups:
- Re: Suffix _T for types found good
- From: Ray Blaak
- Re: Suffix _T for types found good
- References:
- Suffix _T for types found good
- From: amado . alves
- Re: Suffix _T for types found good
- From: Peter C. Chapin
- Re: Suffix _T for types found good
- From: Steve
- Suffix _T for types found good
- Prev by Date: Re: Larger matrices
- Next by Date: Re: SOCI-Ada: The Database Access Library for Ada
- Previous by thread: Re: Suffix _T for types found good
- Next by thread: Re: Suffix _T for types found good
- Index(es):
Relevant Pages
|