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: a07f3367d7,c39ad3e35a7690a9 X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Received: by 10.205.129.137 with SMTP id hi9mr2180020bkc.8.1329286406111; Tue, 14 Feb 2012 22:13:26 -0800 (PST) Path: t13ni28818bkb.0!nntp.google.com!news2.google.com!volia.net!news2.volia.net!feed-A.news.volia.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: Niklas Holsti Newsgroups: comp.lang.ada Subject: Re: Convention for naming of packages Date: Wed, 15 Feb 2012 08:13:03 +0200 Organization: Tidorum Ltd Message-ID: <9q10nfFj2bU1@mid.individual.net> References: <4f355230$0$21451$ba4acef3@reader.news.orange.fr> Mime-Version: 1.0 X-Trace: individual.net 1Fiajl8IVU522Pe9bgqV9gwdiZ6u956/OY2szLODEeiBFTbB3e Cancel-Lock: sha1:JdH+tDDrg7YuaQewgzCn2vZ+HkE= User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:10.0.1) Gecko/20120208 Thunderbird/10.0.1 In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Date: 2012-02-15T08:13:03+02:00 List-Id: On 12-02-15 06:09 , Simon Wright wrote: > Manuel Collado writes: > >> I have a personal criteria about the choice of short/long identifiers: >> >> The length of an identifier should be proportional to the >> "distance" between uses of it and its definition. I do the same, informally. > > Log of the scope in lines? Square root? (:ducks:) > It could be amusing to try to measure the correlation from sources. Perhaps a job for ASIS... > I've adopted AdaCore's convention to use J instead of the (potentially > confusing) I in > > for J in Foo'Range loop I tend to use the first letter of the array or type identifier: for E in Events_Type loop for L in Event_Description(E).Lines'Range loop Print (Event_Description(E).Lines(L))); end loop; end loop; -- Niklas Holsti Tidorum Ltd niklas holsti tidorum fi . @ .