From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,59e7405b37921f3e X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-06-23 06:40:38 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!logbridge.uoregon.edu!hammer.uoregon.edu!skates!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: A good way to name instantiated children? Date: 23 Jun 2003 09:39:34 -0400 Organization: NASA Goddard Space Flight Center (skates.gsfc.nasa.gov) Message-ID: References: <3EF4B565.6070907@spam.com> NNTP-Posting-Host: anarres.gsfc.nasa.gov Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: skates.gsfc.nasa.gov 1056375599 26136 128.183.235.92 (23 Jun 2003 13:39:59 GMT) X-Complaints-To: usenet@news.gsfc.nasa.gov NNTP-Posting-Date: 23 Jun 2003 13:39:59 GMT User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 Xref: archiver1.google.com comp.lang.ada:39600 Date: 2003-06-23T13:39:59+00:00 List-Id: Jeffrey Carter writes: > Simon Wright wrote: > > Stephen Leake 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!) > > > 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