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=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no 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!feed.news.tiscali.de!newsfeed01.sul.t-online.de!newsmm00.sul.t-online.de!t-online.de!news.t-online.com!not-for-mail From: Martin Krischik Newsgroups: comp.lang.ada Subject: with use - again [Was: Manifesto against Vector] Date: Fri, 07 May 2004 08:29:39 +0200 Organization: AdaCL Message-ID: <13387035.PloetEPshz@linux1.krischik.com> References: Reply-To: krischik@users.sourceforge.net Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7Bit X-Trace: news.t-online.com 1083919106 04 7163 x+f0GxBluoLwKAH 040507 08:38:26 X-Complaints-To: usenet-abuse@t-online.de X-ID: EwQg--ZYQemj7ydDqdB+LBTnjM-6izGlF4YSEHllCgcAhdA08TTWgZ User-Agent: KNode/0.7.7 Xref: controlnews3.google.com comp.lang.ada:353 Date: 2004-05-07T08:29:39+02:00 List-Id: 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. > 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