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,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,60e2922351e0e780 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-12 22:30:07 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!logbridge.uoregon.edu!msunews!not-for-mail From: "Chad R. Meiners" Newsgroups: comp.lang.ada Subject: Re: Clause "with and use" Date: Thu, 13 Nov 2003 01:27:21 -0500 Organization: Michigan State University Message-ID: References: <3FA2CDCB.500F4AF0@fakeaddress.nil> <3FACCBFB.9D288CF2@fakeaddress.nil> <3FAF8C99.5040201@noplace.com> <1068561335.260886@master.nyc.kbcfp.com> NNTP-Posting-Host: arctic.cse.msu.edu X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1158 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 Xref: archiver1.google.com comp.lang.ada:2436 Date: 2003-11-13T01:27:21-05:00 List-Id: "Preben Randhol" wrote in message news:slrnbr4aj9.6f3.randhol+valid_for_reply_from_news@kiuk0156.chembio.ntnu.no... >> Please explain to me how I don't care about the reader? What I was > saying is that you do not need to tell the reader in any additional way > which package that are used and which are not as the source code is > plain and clear. And please explain how you would write. > > with Ada.Text_IO; use Ada.Text_IO; First note that I am not saying that your way is cluttered, but I prefer with Ada.Text_IO; with Ada.Integer_Text_IO; use Ada.Text_IO; use Ada.Integer_Text_IO; because I like keeping the two in separate regions of my code and the lines shorter. Anyway I prefer that the context clause sticks because it helps the readers familiarize themselves with the code base. There is nothing more annoying than jumping into a project's code and not being able to figure out the main dependencies. So in response to Russ's claim that context clause are ugly lawn junk, I suggest he play around with visual basic a little bit. VB modules do not list their dependencies in the source code so working on other people's code is a major pain. Java is almost as bad since import clauses are optional. C headers are annoying to read due to all the preprocessor crud embedded in them. Give me context clauses and package specifications any day. They are more like having a well designed landscape for a yard. -CRM