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=0.4 required=5.0 tests=BAYES_00,FORGED_MUA_MOZILLA autolearn=no 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.73.229 with SMTP id o5mr4174663pbv.7.1328894513069; Fri, 10 Feb 2012 09:21:53 -0800 (PST) Path: wr5ni9319pbc.0!nntp.google.com!news2.google.com!goblin1!goblin.stu.neva.ru!feeds.phibee-telecom.net!de-l.enfer-du-nord.net!feeder2.enfer-du-nord.net!gegeweb.org!feeder.news.orange.fr!not-for-mail Date: Fri, 10 Feb 2012 18:21:51 +0100 From: Pascal Obry Organization: Home - http://www.obry.net User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; fr-FR; rv:1.8.1.22) Gecko/20090605 Thunderbird/2.0.0.22 Mnenhy/0.7.5.0 MIME-Version: 1.0 Newsgroups: comp.lang.ada Subject: Re: Convention for naming of packages References: In-Reply-To: Message-ID: <4f355230$0$21451$ba4acef3@reader.news.orange.fr> NNTP-Posting-Date: 10 Feb 2012 18:21:52 CET NNTP-Posting-Host: 90.2.73.226 X-Trace: 1328894512 reader.news.orange.fr 21451 90.2.73.226:3125 X-Complaints-To: abuse@orange.fr Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Date: 2012-02-10T18:21:52+01:00 List-Id: Le 09/02/2012 22:39, Jeffrey Carter a Ă©crit : > On 02/09/2012 02:10 PM, Yannick DuchĂȘne (Hibou57) wrote: >> >> 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. > > The plural is used a lot in the standard library (Ada.Strings, > Ada.Containers). Yes but the first question is do we want to have use clauses or not. Using use it is fine to do: package Shapes is type Shape is ... end Shapes; with Shapes; use Shapes; O : Shape; It would be awful to write: with Shapes; O : Shapes.Shape; I try avoiding use clauses, so my naming is more: package Shape is type Object is tagged ... end Shape; with Shapes; O : Shape.Object; For tagged type I like Object or Instance. For other type, well it depends: package Server is type Data is record ... or package Server is type Handle is record ... Giving good names is the hardest part for me, not sure I have the best scheme, but you asked me :) Pascal. -- --|------------------------------------------------------ --| Pascal Obry Team-Ada Member --| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE --|------------------------------------------------------ --| http://www.obry.net - http://v2p.fr.eu.org --| "The best way to travel is by means of imagination" --| --| gpg --keyserver keys.gnupg.net --recv-key F949BD3B