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-01 02:29:30 PST
Path:
archiver1.google.com!news2.google.com!news.maxwell.syr.edu!newsfeed2.netcologne.de!news.netcologne.de!newsfeed.stueberl.de!teaser.fr!wanadoo.fr!not-for-mail
From: Pascal Obry
Newsgroups: comp.lang.ada
Subject: Re: Clause "with and use"
Date: 01 Nov 2003 11:29:27 +0100
Organization: Home - http://perso.wanadoo.fr/pascal.obry
Message-ID:
References: <3FA2CDCB.500F4AF0@fakeaddress.nil>
NNTP-Posting-Host: avelizy-103-1-2-101.w217-128.abo.wanadoo.fr
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Trace: news-reader2.wanadoo.fr 1067682569 24762 217.128.15.101 (1 Nov 2003
10:29:29 GMT)
X-Complaints-To: abuse@wanadoo.fr
NNTP-Posting-Date: 1 Nov 2003 10:29:29 GMT
User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2.95
Xref: archiver1.google.com comp.lang.ada:1894
Date: 2003-11-01T10:29:29+00:00
List-Id:
18k11tm001@sneakemail.com (Russ) writes:
> Gautier Write-only wrote in message news:<3FA2CDCB.500F4AF0@fakeaddress.nil>...
>
> > -- (1) With'ed only
> > with Ada.Command_Line;
> >
> > -- (2) With'ed and Use'd
> > with and use Ada.Text_IO, Ada.Integer_Text_IO, Ada.Float_Text_IO;
>
> Fabulous idea! I'd refine it one step further to "with/use":
I really don't like this idea. This will just help writing bad Ada programs. I
think that a use clause must be avoided if possible and if not the use
clause should be put the more local possible (inside the routines that really
use feature from the package). This helps understanding the program
better. Having hundreds of with/use at the start of a program is the better
way to get lost !
And of course "with/use" is not something we want. There is no '/' in
reserved words!
Just my 2 cents,
Pascal.
--
--|------------------------------------------------------
--| Pascal Obry Team-Ada Member
--| 45, rue Gabriel Peri - 78114 Magny Les Hameaux FRANCE
--|------------------------------------------------------
--| http://perso.wanadoo.fr/pascal.obry
--| "The best way to travel is by means of imagination"
--|
--| gpg --keyserver wwwkeys.pgp.net --recv-key C1082595