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: claveman@inetworld.net (Charles H. Sampson) Subject: Re: 'with'ing and 'use'ing Date: 2000/03/06 Message-ID: <1e73gx5.tnnxg5v1q24gN%claveman@inetworld.net>#1/1 X-Deja-AN: 594153952 References: <38BC2EB3.2639372B@acm.org> <89l6aj$s5e$1@wanadoo.fr> <1e6xw1b.crkgd5nhvbzuN%claveman@inetworld.net> <8a0hio$qos$1@nnrp1.deja.com> X-Trace: newsfeed.slurp.net 952411877 209.132.125.162 (Tue, 07 Mar 2000 00:51:17 CDT) User-Agent: MacSOUP/2.4.2 NNTP-Posting-Date: Tue, 07 Mar 2000 00:51:17 CDT Newsgroups: comp.lang.ada Date: 2000-03-06T00:00:00+00:00 List-Id: Ted Dennison wrote: > In article <1e6xw1b.crkgd5nhvbzuN%claveman@inetworld.net>, > claveman@inetworld.net (Charles H. Sampson) wrote: > > M. Rosen modestly omits that he wrote a very good paper several > > years ago arguing in favor of the use clause. While I was already a > > strong use-phile before reading the paper, it clarified a number of > > ideas that I had understood only instinctively. I haven't read it in > > I read that too. It seems to me that the whole argument hinged on the > availability of tools to find declarations automaticly. So we are really > talking in circles here. > Not really. Here are his conclusions, quoted directly from the paper: We have argued here that the use clause, which allows short names to be used in the usual case, improves readabil- ity, reliability, maintainability, and abstraction. The use of expanded names has to be allowed for some special cases, but not as the normal case. Of course, like any other feature, the use clause can be abused of... and I don't know of any feature, even in Ada, where this is not true . But apart from pathological cases, reasonable use of the use clause provides more information to the reader, and should be recommended as the usual practice. The only place where he used the tools argument was in refuting (that's too strong a word) the common argument that we need fully qualified names in order to be able to find an identifier's declaration easily. Charlie -- To get my correct email address, replace the "claveman" by "csampson" in my fake (anti-spam) address.