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-Thread: 103376,2a687662f09731bb X-Google-Attributes: gid103376,public X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!newsread.com!news-xfer.newsread.com!news.glorb.com!newsfeed.news2me.com!skynet.be!peer-uk.news.demon.net!kibo.news.demon.net!mutlu.news.demon.net!news.demon.co.uk!demon!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: Ada Quality and Style book discussion Date: Sat, 19 Nov 2005 22:41:40 +0000 Organization: Pushface Message-ID: References: NNTP-Posting-Host: pogner.demon.co.uk Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: news.demon.co.uk 1132440102 25550 62.49.19.209 (19 Nov 2005 22:41:42 GMT) X-Complaints-To: abuse@demon.net NNTP-Posting-Date: Sat, 19 Nov 2005 22:41:42 +0000 (UTC) Cancel-Lock: sha1:x9cbnLG1CH1byAB6oQRzdKYYSiI= User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (darwin) Xref: g2news1.google.com comp.lang.ada:6487 Date: 2005-11-19T22:41:40+00:00 List-Id: Anonymous Coward writes: > In article , Simon Wright wrote: >> As an extreme case, we had a message sending procedure declared like >> >> procedure Send (Message_In : String; To_The_Stream : Stream); >> >> because from the writer's point of view Message_In was indeed an >> input to his procedure. Of course from the reader's side it makes no >> sense at all. > Even better yet would be to avoid taking a position such that the > usage is only correct or readible from one perspective and not > another. The excessive use of articles is at the core of problem in > your first example. Here's how I might code it: Huh? The problem with my example was that the programmer had called something Message_In because he was not thinking from the point of view of the user of his package. I didn't have a real problem with To_The_Stream, and I don't see why you do though personally I would have just said To, as I indicated. > procedure Send (Message : in String; Target : in Stream); > > It's not clutsy from the inside or the outside, it's concise (with > no distracting articles), and it doesn't mislead. It assumes the > audience/reader knows Ada. If the reader doesn't know basic Ada, > then the problem is with the reader, not the code. I don't see what 'knowing Ada' has to do with it?