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=-0.9 required=5.0 tests=BAYES_00,FORGED_GMAIL_RCVD, FREEMAIL_FROM autolearn=no 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!npeer01.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!nx02.iad01.newshosting.com!newshosting.com!198.186.194.250.MISMATCH!news-xxxfer.readnews.com!transit4.readnews.com!news-out.readnews.com!postnews3.readnews.com!not-for-mail Newsgroups: comp.lang.ada Subject: Re: Types, packages & objects : the good old naming conventions question (without religious ware) From: "Peter C. Chapin" References: <561e0a4a-c6c0-42db-9f31-a70f4eae1ed9@a21g2000yqc.googlegroups.com> Message-ID: User-Agent: Xnews/5.04.25 Date: 01 Nov 2009 10:18:54 GMT Organization: SoVerNet (sover.net) NNTP-Posting-Host: e045595f.news.sover.net X-Trace: DXC=Q]T?@27JOG_]cITa2Pd3_WK6_LM2JZB_SDR;O@N:CPcZ3?@`i3kGa5[J0 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." 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). Lately I've become a lot less strict about using _Type suffixes in my code. Peter