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-08 12:08:21 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: 18k11tm001@sneakemail.com (Russ) Newsgroups: comp.lang.ada Subject: Re: Clause "with and use" Date: 8 Nov 2003 12:08:20 -0800 Organization: http://groups.google.com Message-ID: References: <3FA2CDCB.500F4AF0@fakeaddress.nil> <3FA6D275.924D5750@fakeaddress.nil> <1067951806.729117@master.nyc.kbcfp.com> <1068123815.335508@master.nyc.kbcfp.com> <3FAAB12E.C7593B45@fakeaddress.nil> NNTP-Posting-Host: 63.194.87.148 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1068322101 4689 127.0.0.1 (8 Nov 2003 20:08:21 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Sat, 8 Nov 2003 20:08:21 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:2261 Date: 2003-11-08T12:08:20-08:00 List-Id: Preben Randhol wrote in message news:... > > Well I usually write it like this: > > with Gdk.Types.Keysyms; use Gdk.Types.Keysyms; > with Gtk.Accel_Group; use Gtk.Accel_Group; > with Gtk; use Gtk; > with Glib; use Glib; > with Gdk.Types; use Gdk.Types; > with Gtkada.Handlers; use Gtkada.Handlers; > with Gtk.Enums; use Gtk.Enums; > with Program_Intl; use Program_Intl; > with Window.Callbacks; > with Program_Callbacks; > with Settings.Gui; > with Welcome; > with Examine; > with Result; > with Listing; > with Listing.Setup; > with Setup; > with Gac.Help; > > and I sort it so that all the with use pairs comes first. > > I find that nice and readable. It just occurrred to me that perhaps your definition of "readable" differs from mine. You claim, for example, that with Gdk.Types.Keysyms; use Gdk.Types.Keysyms; is "more readable" than simply use Gdk.Types.Keysyms; I will agree that the former requires more reading. Is that what you mean by "more readable"? Well, my definition of "more readable" is not "requires more reading." This may be controversial, but my definition of "more readable" is "easier to read." The latter form above is clearly easier to read because it requires only *half* the amount of reading. And not only does it cut the reading in half, it eliminates the need to cross check to be sure that the two identical names are indeed indentical. How any reasonable person could possibly assert with a straight face that twice the reading is "more readable" is beyond me. Let me propose a thought experiment. Make an extra copy of this post, then read both copies and verify, character by character, that the two are identical. Then tell me if that made it "more readable." "When you're arguing with a fool, make sure he isn't doing the same thing." --Anon