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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,c2f62556e56c9683 X-Google-Attributes: gid103376,public From: Charles Hixson Subject: Re: 'with'ing and 'use'ing Date: 2000/03/02 Message-ID: <38BE974F.B8FAFEBE@earthlink.net>#1/1 X-Deja-AN: 592278272 Content-Transfer-Encoding: 7bit References: <38BC2EB3.2639372B@acm.org> <89l6aj$s5e$1@wanadoo.fr> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@earthlink.net X-Trace: newsread1.prod.itd.earthlink.net 952014701 198.94.156.19 (Thu, 02 Mar 2000 08:31:41 PST) Organization: EarthLink Network, Inc. MIME-Version: 1.0 NNTP-Posting-Date: Thu, 02 Mar 2000 08:31:41 PST Newsgroups: comp.lang.ada Date: 2000-03-02T00:00:00+00:00 List-Id: Jean-Pierre Rosen wrote: > As a known use-phile, I can't resist adding my 0.02 Euros... > > Two issues: > 1) Do not confuse using full names and forbidding use clauses. It is > perfectly possible to write full names while in the scope of a use clause > for a package. Sometimes, I use full names although I'm in scope simply > because I find that, for a particular name, I need a more accurate > description. Having a use clause leaves me the choice of the way I write it > on a case-by-case basis. -- snip A nice technique here is to use the full name the first time that the name is referenced. This informs the browser of where the name is to be found. Subsequent uses can then abbreviate the notation to just the name. The use clause allows the compiler to do this, and the first fully named use allows the reader to understand it in context.