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,1e3f2eac5c026e3 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2003-12-21 16:07:32 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: 18k11tm001@sneakemail.com (Russ) Newsgroups: comp.lang.ada Subject: Re: Other Ada Standards (was Re: SIGada Conference) Date: 21 Dec 2003 16:07:32 -0800 Organization: http://groups.google.com Message-ID: References: <468D78E4EE5C6A4093A4C00F29DF513D04B82B08@VS2.hdi.tvcabo> <657ea3e3.0312172255.4869eae5@posting.google.com> <0cOdndZsZbH6W3yiRVn-gg@comcast.com> NNTP-Posting-Host: 63.194.87.148 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1072051652 19009 127.0.0.1 (22 Dec 2003 00:07:32 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: Mon, 22 Dec 2003 00:07:32 +0000 (UTC) Xref: archiver1.google.com comp.lang.ada:3679 Date: 2003-12-21T16:07:32-08:00 List-Id: "Robert I. Eachus" wrote in message news:... > Anyone who argues that "with and use" is eight characters longer than > "use" needs a better text editor. First, let me say that I think "with and use" is a big step forward from double naming of library units. The problem with it has nothing to do with eight extra characters, but rather with the fact that it is grammatically awkward. You might say, "use a hammer," but you would never say "with and use a hammer." I think Ada's syntax is already awkward enough without this. I think "with/use" is preferable, but I think "use" implies "with" is even better. Having said that, let me repeat that I consider "with and use" preferable to double naming. > > I suggest that 'with and use A.B.C;' is used, and means /exactly/ the same > > as 'with A.B.C; use A.B.C;' (it fails if 'with A.B.C;' fails). It's too > > confusing for 'use A.B.C;' to imply 'with A.B;'. I fear a reviewer could be > > sent into a spin searching for a library unit named 'A.B.C'. > > I agree. From the point of view of a reader, "with and use" is a slam > dunk compared to use implies with. I disagree. I think "use" implies "with" is fine, with the caveat that it does so only if the "with" is legal. How often would this be an issue in actual practice anyway? Not often, I suspect. Why let the exception determine the rule?