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,fce663eaf40b52f6 X-Google-Attributes: gid103376,public Path: controlnews3.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed1.uni2.dk!news.get2net.dk.POSTED!53ab2750!not-for-mail Newsgroups: comp.lang.ada Subject: Re: with use - again [Was: Manifesto against Vector] References: <13387035.PloetEPshz@linux1.krischik.com> From: Mark Lorenzen Message-ID: User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:HtuOwrfFQwiyJ3Ee+H/aY2JV56k= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 07 May 2004 15:41:45 +0200 NNTP-Posting-Host: 82.180.17.204 X-Complaints-To: abuse@colt-telecom.dk X-Trace: news.get2net.dk 1083933614 82.180.17.204 (Fri, 07 May 2004 14:40:14 CEST) NNTP-Posting-Date: Fri, 07 May 2004 14:40:14 CEST Organization: Colt Telecom Kunde Xref: controlnews3.google.com comp.lang.ada:363 Date: 2004-05-07T15:41:45+02:00 List-Id: Martin Krischik writes: > Russ wrote: > > >> with/use Ada.Integer_Text_IO;> > > The last attempt on this was "with use Ada.Integer_Text_IO;". Then there > was a "with Ada.Integer_Text_IO; use <>;" as well. > >> is cleaner and simpler than >> >> with Ada.Integer_Text_IO; use Ada.Inteqer_Text_IO > > You know that this has cost me when I first read Ada Tutorials and tried to > understand what what was going on. Every package was "use"d and I was > wondering: And where is this function, procedure, exception coming from? > > The use of "use" should be forbidden in tutorials. The use of "use" should just be forbidden. This would save us the endless discussions of why "use" can't implicitly "with" a package. > >> And I also that it is a trivial matter to parse the former to produce >> the latter. I could do it myself in a few minutes. Nor does it break >> compatibility with legacy code in any way. I see absolutely no >> reasonable objection to "with/use" (but I have a funny feeling that I >> may soon be bombarded with a lot of unreasonable objections). > > Why unreasonable? "use" make reading code harder. "package IIO renames > Ada.Inteqer_Text_IO" is far better on the reading side. > >> By the way, the following is for those of you who prefer to read >> everything twice: > > Well since I never "use" anything on the outside level and never use in > public part of any package I never read anything twice. > > On a Side note: I never use a "*" in java imports as well. > > With Regards > > Martin > > -- > mailto://krischik@users.sourceforge.net > http://www.ada.krischik.com - Mark Lorenzen