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,3cd94a799504cebd X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-10-16 17:18:34 PST Path: archiver1.google.com!news1.google.com!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed.direct.ca!look.ca!newshub2.rdc1.sfba.home.com!news.home.com!news1.rdc1.sfba.home.com.POSTED!not-for-mail From: tmoran@acm.org Newsgroups: comp.lang.ada Subject: Re: Small question concerning use References: <9qi8ls$a2g1@news.cis.okstate.edu> X-Newsreader: Tom's custom newsreader Message-ID: Date: Wed, 17 Oct 2001 00:18:33 GMT NNTP-Posting-Host: 24.7.82.199 X-Complaints-To: abuse@home.net X-Trace: news1.rdc1.sfba.home.com 1003277913 24.7.82.199 (Tue, 16 Oct 2001 17:18:33 PDT) NNTP-Posting-Date: Tue, 16 Oct 2001 17:18:33 PDT Organization: Excite@Home - The Leader in Broadband http://home.com/faster Xref: archiver1.google.com comp.lang.ada:14766 Date: 2001-10-17T00:18:33+00:00 List-Id: > How do you name a variable so it doesn't conflict with other > names when "use"d, but doesn't do too much repetition. What should > Ada.Streams.Stream_Element_Count have been named? (Count's just an awful > name, anyway, even outside a "use" enviroment; a count of what?) Sometimes you just have to decide at design time whether the package is going to be "use"d or not. If not, then package Apples Count : Integer; lets you say Apples.Count := but, as you say, use Apples; ... Count := would be confusing. OTOH, Ada.Streams.Stream_Element_Count was clearly designed with the intention of "use Ada.Streams", in which case Stream_Element_Count is very readable, while Ada.Streams.Stream_Element_Count is ugly.