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,7eaf9f2597de2259 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-08 09:42:06 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!headwall.stanford.edu!HSNX.atgi.net!sjc-peer.news.verio.net!news.verio.net!iad-read.news.verio.net.POSTED!not-for-mail Message-ID: <3BC1D74F.3254@li.net> From: Vincent Marciante X-Mailer: Mozilla 3.0 (OS/2; I) MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: on package naming, should the word "_pkg" be part of it? References: <9pif1o01btl@drn.newsguy.com> <3BBD12F1.9BED0B70@acm.org> <3BC0B1D4.21C79A8@acm.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Date: Mon, 08 Oct 2001 12:41:51 -0400 NNTP-Posting-Host: 168.191.118.158 X-Complaints-To: abuse@verio.net X-Trace: iad-read.news.verio.net 1002559324 168.191.118.158 (Mon, 08 Oct 2001 16:42:04 GMT) NNTP-Posting-Date: Mon, 08 Oct 2001 16:42:04 GMT Organization: Verio Xref: archiver1.google.com comp.lang.ada:13938 Date: 2001-10-08T12:41:51-04:00 List-Id: Stephen Leake wrote: > > Jeffrey Carter writes: > > > I was simply making the point that those who think sticking _Type on > > every type name or _Package on every package name is a Good Thing should > > also think sticking _Procedure on every procedure name, _Parameter on > > every parameter name, and such are also Good Things. > > Hmm. Stating what I "should" think is not very productive; better to > ask what I _do_ think, and why. > > I use _Type. The reason is that types and objects share the same > namespace, yet the most reasonable name for an object and a type is > the same: > > type Car is record ... end record; > > Car : Car; > > This is natural, but illegal. The easiest (for _me_, not for > everyone!) way to resolve it is to add some "noise" to either the > object or the type. Since the object name will appear more often than > the type, I add noise to the type: > > type Car_Type is record ... end record; > > Car : Car_Type; If you declare the type in another package then you do not have to add any "noise" to the simple type name. By the way, your argument above implies that you are expecting to any have one object of the type. In my experience, It is rare to have only one object of a type - I would not add _type to all type definitions as a convention just to make the rare case "easy" to deal with. Vincent Marciante