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-Thread: 103376,c39ad3e35a7690a9 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Received: by 10.68.135.231 with SMTP id pv7mr6085534pbb.8.1328977879177; Sat, 11 Feb 2012 08:31:19 -0800 (PST) Path: wr5ni12888pbc.0!nntp.google.com!news2.google.com!news4.google.com!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!217.73.144.45.MISMATCH!feeder2.ecngs.de!ecngs!feeder.ecngs.de!Xl.tags.giganews.com!border1.nntp.ams.giganews.com!nntp.giganews.com!local2.nntp.ams.giganews.com!nntp.bt.com!news.bt.com.POSTED!not-for-mail NNTP-Posting-Date: Sat, 11 Feb 2012 10:31:18 -0600 User-Agent: NewsTap/3.5.1 (iPad) From: Martin Dowie Newsgroups: comp.lang.ada Mime-Version: 1.0 Message-ID: <1324263288350670506.628349martin-re.mo.ve.thedowies.com@news.btinternet.com> Subject: Re: Convention for naming of packages References: Date: Sat, 11 Feb 2012 10:31:18 -0600 X-Usenet-Provider: http://www.giganews.com X-AuthenticatedUsername: NoAuthUser X-Trace: sv3-NV8YTgr8c04wGLrzSKiVkq7ii12OZCGeb6l7duSStaoTzpM5tSIJhokvoWuUJUjQI5YEDetnN+Dh6oK!coDyc9PgIXu8xL4gssmQxqXJPNbtdo4SZglpjFRwhrbn+QyagGGaWNwFtEwE/wJ5SM4exuQjnCS3!FKmzwu+iMrnQXN1E51Nb9mpN8czMLsKQjBFVOj7i53KS2c/E+Q== X-Complaints-To: abuse@btinternet.com X-DMCA-Complaints-To: abuse@btinternet.com X-Abuse-and-DMCA-Info: Please be sure to forward a copy of ALL headers X-Abuse-and-DMCA-Info: Otherwise we will be unable to process your complaint properly X-Postfilter: 1.3.40 X-Original-Bytes: 2920 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 2012-02-11T10:31:18-06:00 List-Id: Yannick DuchĂȘne (Hibou57 ) wrote: > Hi people out there, > > There use to be here, discussions about naming convention of types, > focusing on whether or not the _Type suffix should be used (I personally > opted for it). Don't want to come back to this one here, but about another > common (common for me) name conflict: package names which conflict with > object names, as package names are often derived from a type name with any > suffix removed, and as type names are often derived from generic object > names, comes a name conflict with object names and packages names. > > Most of time this does not occur, but when it do, it do. In the mean time, > I would like to as much strictly as possible, rely on one naming > convention for packages. > > I am thinking the plural could play this role. There may be a limitation > to its application, as I feel to know some English nouns do not have a > plural, or are spelled the same for both their singular and plural. > > Do you know another better and constant convention well suited for package > names? Note: I don't mind if the convention does not match the one of > standard packages (I use _Type, and standard packages don't, and I never > bothered). > > I'm seeking for any idea from any source. > > Have a sweet time. Another option is to prefix the type with A_ (or An_). This has the benefit of mirroring the indefinite article nature of types (ie Class v Object). You can then name the packages as appropriate - most times plurals make sense but not always. Takes a little getting used to but is actually very readable and has all the benefits of _Type without the 'ugliness'. -- Martin -- -- Sent from my iPad