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,f24b55bcdf15c088 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2001-03-06 07:30:27 PST Newsgroups: comp.lang.ada Path: supernews.google.com!sn-xit-02!sn-xit-04!supernews.com!cabal10.airnews.net!news.airnews.net!cabal11.airnews.net!news.airnews.net!uunet!ash.uu.net!world!bobduff From: Robert A Duff Subject: Re: Ada95 tutorials with sample code. Sender: bobduff@world.std.com (Robert A Duff) Message-ID: Date: Tue, 6 Mar 2001 15:29:23 GMT References: <3AA44F83.87CB23B7@acm.org> <3AA48DE9.A0650F21@emw.ericsson.se> Organization: The World Public Access UNIX, Brookline, MA X-Newsreader: Gnus v5.3/Emacs 19.34 Xref: supernews.google.com comp.lang.ada:5468 Date: 2001-03-06T15:29:23+00:00 List-Id: Sven Nilsson writes: > I'm sorry if I disrupt this thread with a slightly off-topic question > (which I'm sure has been discussed countless times before) BUT Yes, it has been discussed many times. There is basically no agreement: some folks like to use "use" almost all the time, other folks almost never. And some folks advocate renamings, as you suggest: > package Tio renames Ada.Text_IO; -- Rename common packages so I don't > have to > -- type in the whole thing every time I > use it Some folks (including me) think that the renaming solution gives you the worst of both worlds: the "Tio." is just noise, because it doesn't tell me *anything*. I'd rather have "Put_Line(...)" or "Text_IO.Put_Line(...)". After all, if "Tio" were a reasonable name for this thing, why didn't Jean Ichbiah call it that in the first place? (Note: I always have "use Ada;", so I would never say "Ada.Text_IO.Put_Line(...);".) (Another note: the rationale above, "so I don't have to type in the whole thing...", is a poor reason to do *anything*. If you said, "so I don't have to read all that extra verbiage..." it might make sense. The cost of making computer programs has approximately nothing to do with how much typing is involved.) Another point is that the person who writes the package has to decide whether clients should say "use" of that package, because it makes a big difference in how names of things in that package are chosen. It makes no sense to say "never use use" if the package you're importing was written with use clauses in mind. - Bob