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,60e2922351e0e780 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-11-08 03:35:59 PST Path: archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed.icl.net!newsfeed.fjserv.net!news.tele.dk!news.tele.dk!small.news.tele.dk!uninett.no!ntnu.no!not-for-mail From: Preben Randhol Newsgroups: comp.lang.ada Subject: Re: Clause "with and use" Date: Sat, 8 Nov 2003 11:35:58 +0000 (UTC) Organization: PVV Message-ID: References: <3FA2CDCB.500F4AF0@fakeaddress.nil> <3FA3B412.AF3BEB96@fakeaddress.nil> <3FA6D275.924D5750@fakeaddress.nil> <1067951806.729117@master.nyc.kbcfp.com> <1068123815.335508@master.nyc.kbcfp.com> <3FAAB12E.C7593B45@fakeaddress.nil> <3FACCBFB.9D288CF2@fakeaddress.nil> NNTP-Posting-Host: kiuk0156.chembio.ntnu.no X-Trace: tyfon.itea.ntnu.no 1068291358 19398 129.241.83.82 (8 Nov 2003 11:35:58 GMT) X-Complaints-To: usenet@itea.ntnu.no NNTP-Posting-Date: Sat, 8 Nov 2003 11:35:58 +0000 (UTC) User-Agent: slrn/0.9.8.0 (Linux) Xref: archiver1.google.com comp.lang.ada:2254 Date: 2003-11-08T11:35:58+00:00 List-Id: On 2003-11-08, Gautier Write-only wrote: > > I agree that it's an optimum, but under the constraint > of the present syntax. I would be very happier if I could > have it so: > > [with and ]use > Gdk.Types, Gdk.Types.Keysyms, > Gtk, Gtk.Accel_Group, Gtk.Enums, > Gtkada.Handlers, > Glib, > Program_Intl; > > with > Window.Callbacks, Program_Callbacks, > Settings.Gui, > Welcome, Examine, Result, > Listing, Listing.Setup, Setup, > Gac.Help; > > Wouldn't you ? > It's nicer, a bit easier to manage and hopefully the > title of the unit below will appear already on the first page > of a listing... No, I wouldn't actually for these reasons: 1. It doesn't become more readable. 2. It doesn't make it easier to change a with-ed package to a with and use (or only use) package. 3. It isn't a feature which will imporve the language IMHO. 4. I find the way I wrote the wit and use more readable and easier to modify (cut'n'paste, for example) 5. It would totally break with Ada 95 (if use implicitly with a unit) 6. Reason as stated in my signature. Now I'll continue my ada-suit for vim so I can share it to other vim users as soon as possible. I'll make the with use macro now ;-) Preben -- "Saving keystrokes is the job of the text editor, not the programming language."