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,1b41412c7bc28c47 X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news1.google.com!news.glorb.com!newsfeed2.telusplanet.net!newsfeed.telus.net!edtnps82.POSTED!023a3d7c!not-for-mail Sender: blaak@METROID Newsgroups: comp.lang.ada Subject: Re: Suffix _T for types found good References: <2e9ebb23-a68b-43cf-8871-febcb173f951@56g2000hsm.googlegroups.com> <4899d2af$0$19731$4d3efbfe@news.sover.net> From: Ray Blaak Message-ID: Organization: The Transcend User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Tue, 19 Aug 2008 23:04:19 GMT NNTP-Posting-Host: 208.66.252.228 X-Trace: edtnps82 1219187059 208.66.252.228 (Tue, 19 Aug 2008 17:04:19 MDT) NNTP-Posting-Date: Tue, 19 Aug 2008 17:04:19 MDT Xref: g2news1.google.com comp.lang.ada:1659 Date: 2008-08-19T23:04:19+00:00 List-Id: Martin writes: > Ah, but "a" (or "an_") are 'indefinite articles' in English (which > this is obviously trying to replicate), i.e. they don't specify any > particular instance. A variable does specify a particulary instance, > so using "a_"/"an_" for them is wrong. "better names" are what are > always called for :-) > > The_Buffer : A_Buffer; A type is not an indefinite instance either, or any instance at all. A type is a contract specifying behaviour and storage. My suspicion is that this is motivated so that it reads better in English, e.g. "the buffer is a buffer". Unfortunately, this is not the semantics of the programming language. The semantics are: "The_Buffer" is now in scope, and its type is "Buffer". This is more succinctly expressed as: The_Buffer : Buffer As programmers we are quite used to understanding code. We are required to keep things readable *and* accurate. > I've used (and mandated) the "A_"/"An_" prefixes on a few projects and > it does work quite well and read fine. Well, there you go. Use it as you like if it works for you, but I can't stand it. -- Cheers, The Rhythm is around me, The Rhythm has control. Ray Blaak The Rhythm is inside me, rAYblaaK@STRIPCAPStelus.net The Rhythm has my soul.