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: a07f3367d7,e55245590c829bef X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!goblin3!goblin1!goblin.stu.neva.ru!news.tornevall.net!.POSTED!not-for-mail From: Jeffrey Carter Newsgroups: comp.lang.ada Subject: Re: _Type vs no _Type Date: Fri, 05 Nov 2010 17:40:49 -0700 Organization: TornevallNET - http://news.tornevall.net Message-ID: References: <86wroy58ff.fsf@gareth.avalon.lan> <86pqup5xfy.fsf@gareth.avalon.lan> <86y69d3rec.fsf@gareth.avalon.lan> <82lj5c5ecm.fsf@stephe-leake.org> <82zktq4n9b.fsf_-_@stephe-leake.org> NNTP-Posting-Host: cc3a7293b1b962066df6e150f37bf5c3 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: 2a85d22d857f33c5ad6979b5b43efce4 X-Complaints-To: abuse@tornevall.net User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.1.15) Gecko/20101027 Thunderbird/3.0.10 X-Complaints-Language: Spoken language is english or swedish - NOT ITALIAN, FRENCH, GERMAN OR ANY OTHER LANGUAGE! In-Reply-To: X-UserIDNumber: 1738 X-Validate-Post: http://news.tornevall.net/validate.php?trace=2a85d22d857f33c5ad6979b5b43efce4 X-Complaints-Italiano: Non abbiamo padronanza della lingua italiana - se mandate una email scrivete solo in Inglese, grazie X-Posting-User: 0243687135df8c4b260dd4a9a93c79bd Xref: g2news2.google.com comp.lang.ada:16279 Date: 2010-11-05T17:40:49-07:00 List-Id: On 11/05/2010 03:52 PM, Robert A Duff wrote: > > Well, you still have to think of something /good/ to go before > the "_Type". In which case you might as well think of something that's good without _Type. > But, you see, some folks, including me, think single-letter parameters > names ARE "good", in some cases. Here's an example (from the GNAT > sources, file sinfo.ads): > > function Abort_Present (N : Node_Id) return Boolean; > > The body of this function is short, so the single-letter "N" > doesn't get lost. What would you call it? I don't know, since I don't know what it's for or what role the parameter plays. > What about operators? The Ada RM says: > > function "+"(Left, Right: T) return T; > > but I think that's just silly. I usually say: > > function "+"(X, Y: T) return T; > > Named notation never, ever, ever makes sense for operators. I agree, but use Left and Right for consistency. -- Jeff Carter "Run away! Run away!" Monty Python and the Holy Grail 58