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.6 required=5.0 tests=BAYES_00,TO_NO_BRKTS_FROM_MSSP autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,3cd94a799504cebd X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-16 06:27:40 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!newsfeed.berkeley.edu!ucberkeley!sfo2-feed1.news.digex.net!intermedia!news-out.spamkiller.net!propagator-la!news-in-la.newsfeeds.com!news-in.superfeed.net!newsranger.com!www.newsranger.com!not-for-mail Newsgroups: comp.lang.ada From: Ted Dennison References: <19130ae.0110151428.65937d5b@posting.google.com> Subject: Re: Small question concerning use Message-ID: X-Abuse-Info: When contacting newsranger.com regarding abuse please X-Abuse-Info: forward the entire news article including headers or X-Abuse-Info: else we will not be able to process your request X-Complaints-To: abuse@newsranger.com NNTP-Posting-Date: Tue, 16 Oct 2001 09:26:46 EDT Organization: http://www.newsranger.com Date: Tue, 16 Oct 2001 13:27:07 GMT Xref: archiver1.google.com comp.lang.ada:14665 Date: 2001-10-16T13:27:07+00:00 List-Id: In article <19130ae.0110151428.65937d5b@posting.google.com>, Eric Merritt says... >I am fairly new to Ada, though I already love the language, and I have >a small question concerning the 'use' keyword. Many books and quite a >few postings to this group say not to use it at all, even the style >guide is fairly adamant about avoiding it. Yet, in many packages I see >it used frequently. Is there a set standard for when to use it and >when not to use it? I would just as soon not use it at all except some >packages names get really (really) long. Ok, lets say you don't use That is a *very* contraversial issue here. My advice is to do without it if you are new to Ada, because if nothing else it forces you to pay attention to where everything is comming from. Once you are much more proficient you will be capable of making an intelligent decision on when/if it is OK to use. >it, is it then acceptable to use 'rename ' to shorten long package >names. Which is the more acceptable? On that I'd say "no". Its not so bad on projects where there is a standard agreed-upon documented set of "abbreviations". But it is sheer hell trying to read code where someone renamed all sorts of stuff. I'd say you should stick with full dot notation until you get your feet fully under you. After you get used to it, you may find that things like Ada.Strings.Unbounded.To_Unbounded_String aren't really all that bad. --- T.E.D. homepage - http://www.telepath.com/dennison/Ted/TED.html No trees were killed in the sending of this message. However a large number of electrons were terribly inconvenienced.