comp.lang.ada
 help / color / mirror / Atom feed
From: "Dr Richard A. O'Keefe" <ok@atlas.otago.ac.nz>
Subject: Re: An array of records within an array of records (Still a problem)
Date: 1998/05/06
Date: 1998-05-06T00:00:00+00:00	[thread overview]
Message-ID: <354FB3A5.4522@atlas.otago.ac.nz> (raw)
In-Reply-To: 354DF790.B61E09F7@gsfc.nasa.gov


Stephen Leake wrote:
> Sorry, I couldn't resist. I use _Type, and I just spent the weekend
> reading the Ada 95 Booch components, which don't.  It was subtly
> frustrating.  It would be nice if we (the Ada community) could agree
> on a consensus for this issue, as we seem to have on the
> Capitalization_Of_Multi_Word_Names issue.

The rule I was taught is a very simple one.  You should name your
types and your variables so that an object declaration like

    Open_Goal_Set: Goal_Set;

can be read aloud as a TRUE and USEFUL sentence, pronouncing the
colon as "is a".  Hence
    Open_Goal_Set is a Goal_Set
works, but
    Open_Goal_Set is a Goal_Set_Type
doesn't work, and
    Open_Goal_Set is a Goal_Sets
_really_ grates.

Note that this _is_ consistent with the names of the Ada built in
types:
    Space: Character;
NOT
    Space: Character_Type;
or  Space: Characters;

Unlike capitalisation, where the case pattern was _defined_ not to
make any difference to the predefined things in the language, we
_can't_ _consistently_ switch to a *_Type or *s convention.




  reply	other threads:[~1998-05-06  0:00 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1998-05-02  0:00 An array of records within an array of records (Still a problem) tmoran
1998-05-04  0:00 ` Stephen Leake
1998-05-06  0:00   ` Dr Richard A. O'Keefe [this message]
1998-05-06  0:00     ` _Type (was: Re: An array of records within an array of records (Still a problem)) Norman H. Cohen
1998-05-08  0:00       ` Michael F Brenner
1998-05-06  0:00     ` An array of records within an array of records (Still a problem) Robert Dewar
     [not found] <354AEE03.424DC998@none.com>
1998-05-02  0:00 ` Arthur Ward
1998-05-02  0:00 ` David C. Hoos, Sr.
1998-05-02  0:00 ` Robert Dewar
1998-05-02  0:00 ` David C. Hoos, Sr.
1998-05-04  0:00 ` Pascal Obry
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox