comp.lang.ada
 help / color / mirror / Atom feed
From: Stephen Leake <Stephe.Leake@nasa.gov>
Subject: Re: A good way to name instantiated children?
Date: 23 Jun 2003 09:39:34 -0400
Date: 2003-06-23T13:39:59+00:00	[thread overview]
Message-ID: <uwufczze1.fsf@nasa.gov> (raw)
In-Reply-To: 3EF4B565.6070907@spam.com

Jeffrey Carter <spam@spam.com> writes:

> Simon Wright wrote:
> > Stephen Leake <Stephe.Leake@nasa.gov> writes:
> >
> >>I solve this by prefixing Gen_ to the generic package names:
> > I've used the suffix _G (still in >1 mind about it, though!)
> 
> <snip> 
> If you are going to repeat "generic" in the name, a suffix is better
> than a prefix. Psychologically, the 1st few characters of identifiers
> are the most important in distinguishing them. If you have a lot of
> identifiers starting with the same thing, it makes your code harder to
> read. This applies to A_ and The_ on parameter names as well as to
> Gen_ on generics.

Interesting point. I use a _Type suffix on types; I'm not sure why I
decided on a prefix for generics.

I have noticed that using tab completion on file names that start with
Gen is a pain; changing to a suffix would fix that.

Always good to get reviews from independent observers :).

-- 
-- Stephe



  reply	other threads:[~2003-06-23 13:39 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-06-20 15:51 A good way to name instantiated children? Dmitry A. Kazakov
2003-06-20 21:06 ` Stephen Leake
2003-06-21  6:48   ` Simon Wright
2003-06-21 19:43     ` Jeffrey Carter
2003-06-23 13:39       ` Stephen Leake [this message]
2003-06-21  7:12   ` Dmitry A. Kazakov
replies disabled

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