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,25d835bb9a4a003f X-Google-Attributes: gida07f3367d7,public,usenet X-Google-NewGroupId: yes X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news2.google.com!news1.google.com!npeer02.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post02.iad.highwinds-media.com!news.flashnewsgroups.com-b7.4zTQh5tI3A!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Types, packages & objects : the good old naming conventions question (without religious ware) References: <561e0a4a-c6c0-42db-9f31-a70f4eae1ed9@a21g2000yqc.googlegroups.com> From: Stephen Leake Date: Wed, 04 Nov 2009 19:33:58 -0500 Message-ID: User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.2 (windows-nt) Cancel-Lock: sha1:cZGDK8teyrQeEzUJKmJJ7Y7eTtY= MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: abuse@flashnewsgroups.com Organization: FlashNewsgroups.com X-Trace: bc81e4af21d5be197caa726814 Xref: g2news2.google.com comp.lang.ada:8985 Date: 2009-11-04T19:33:58-05:00 List-Id: "Peter C. Chapin" writes: > Stephen Leake wrote in > news:u4ope4pqa.fsf@stephe-leake.org: > >> Yes, but reading is also important. The _Type suffix is essentially >> noise when reading; it's only there for the compiler, not the human. >> So you want to read it as few times as possible, as well as write it >> as few times as possible. > > This seems backwards to me. I could use a type name such as X72efY9 for all > the compiler cares. The _Type suffix is most definitely for the human. It > says, "Hey! This is the name of a type so keep that in mind when looking at > this code." Well, you can read it that way. But the original reason the _Type convention got started (at least, as far as I'm concerned) is to solve the problem of overlapping object and type namespaces. This is illegal: procedure (List : in list); So we have to add noise to either the object or the type, to keep the compiler happy. That's all there is to it. > In the past I used _Type as a suffix for all of my types. However, there > are times when that doesn't seem to fit. After all the standard types don't > (usually) use a _Type suffix (Character, Integer, Positive, Vector, etc). The standard is Just Wrong. But we have to live with it. -- -- Stephe