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=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!feeder.eternal-september.org!nntp-feed.chiark.greenend.org.uk!ewrotcd!newsfeed.xs3.de!news.jacob-sparre.dk!franka.jacob-sparre.dk!pnx.dk!.POSTED.rrsoftware.com!not-for-mail From: "Randy Brukardt" Newsgroups: comp.lang.ada Subject: Re: Type naming conventions: Any_Foo Date: Fri, 6 Dec 2019 19:19:04 -0600 Organization: JSA Research & Innovation Message-ID: References: Injection-Date: Sat, 7 Dec 2019 01:19:05 -0000 (UTC) Injection-Info: franka.jacob-sparre.dk; posting-host="rrsoftware.com:24.196.82.226"; logging-data="3362"; mail-complaints-to="news@jacob-sparre.dk" X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.5931 X-RFC2646: Format=Flowed; Response X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.7246 Xref: reader01.eternal-september.org comp.lang.ada:57681 Date: 2019-12-06T19:19:04-06:00 List-Id: "Jeffrey R. Carter" wrote in message news:qsed5s$93u$2@dont-email.me... > On 12/6/19 12:12 AM, Randy Brukardt wrote: >> >> Janus/Ada uses names picked Jeff's way (mostly, I've adopted the Claw >> rules >> for new things), and it is hard to figure out the name of something when >> you >> don't remember it. And an Ada compiler has a *lot* of declarations; it's >> hard to even find them in the package specs if you can't remember enough >> about the possible name for a search to work. (Janus/Ada's root go back >> to >> the fall of 1980, so it's common to not remember something! :-). > > I don't see how adding _Type to the end of a name makes the part that > comes before _Type any easier to remember. For me at least, it lets me keep the operative names much shorter and freer of junk prefixes. Shorter names are easier to find because one doesn't get confused about whether the type is Root_Window or Window_Root or Root_of_Window. And the _Type keeps them from being too short. Randy.