Re: Suffix _T for types found good
- From: "Steve" <nospam_steved94@xxxxxxxxxxx>
- Date: Wed, 6 Aug 2008 18:23:38 -0700
"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
have used _Pointer. As in
type Integer_Pointer is access all Integer;
It mostly seems to work for me.
I go with _Type too, but for pointers I go with _Acc.
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.
Regards,
Steve
.
- Follow-Ups:
- Re: Suffix _T for types found good
- From: Colin Paul Gloster
- 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
- Suffix _T for types found good
- Prev by Date: Re: Larger matrices
- Next by Date: Re: Ada.Calendar.Time_Zones
- Previous by thread: Re: Suffix _T for types found good
- Next by thread: Re: Suffix _T for types found good
- Index(es):
Relevant Pages
|