Re: Suffix _T for types found good
- From: Martin <martin.dowie@xxxxxxxxxxxxxxx>
- Date: Tue, 19 Aug 2008 11:05:58 -0700 (PDT)
On Aug 7, 6:04 pm, Ray Blaak <rAYbl...@xxxxxxxxxxxxxxxxxx> wrote:
Colin Paul Gloster <Colin_Paul_Glos...@xxxxxxx> writes:
index : anIndex;
buffer : aBuffer;
This is backwards to me:
anIndex : Index;
aBuffer : Buffer;
E.g. the value is a specific instance vs the type is general. The names should
reflect that.
--
Cheers, The Rhythm is around me,
The Rhythm has control.
Ray Blaak The Rhythm is inside me,
rAYbl...@xxxxxxxxxxxxxxxxxx The Rhythm 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
.
- Follow-Ups:
- Re: Suffix _T for types found good
- From: Stephen Leake
- Re: Suffix _T for types found good
- From: Steve
- 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
- Re: Suffix _T for types found good
- From: Colin Paul Gloster
- Re: Suffix _T for types found good
- From: Ray Blaak
- Suffix _T for types found good
- Prev by Date: Ada.Text_IO.Fixed_IO - strange prefix in output
- Next by Date: Re: GTK Build from source
- Previous by thread: Re: Suffix _T for types found good
- Next by thread: Re: Suffix _T for types found good
- Index(es):
Relevant Pages
|