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!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: Type naming conventions: Any_Foo Date: Sun, 8 Dec 2019 13:04:01 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sun, 8 Dec 2019 12:04:02 -0000 (UTC) Injection-Info: reader02.eternal-september.org; posting-host="55366988cf76eb8e7c4100550347788f"; logging-data="24034"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX19PEPL2XdwBmpv7nsWIIv6NyXkrvNtN4dE=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.1 Cancel-Lock: sha1:s6Jvm+ppHdcWeJj5ZzifOs3tFcg= In-Reply-To: Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:57692 Date: 2019-12-08T13:04:01+01:00 List-Id: On 12/7/19 1:36 PM, Niklas Holsti wrote: > > I follow the convention that procedure names are verbs ("Get") or verb phrases > ("Remove_Last_Item") that describe the action or its effects, while function > names are nouns ("Element") or noun phrases ("Largest_Element") that describe > the value returned by the function. > > Therefore, IMO, "Get" is not a proper name for a function (unless the program > models animal breeding, and the Get function returns all the offspring of a > particular animal or pair of animals). I agree, but functions named starting with Get_ are common enough in the ARM that we are stuck with them. -- Jeff Carter "If you don't get the President of the United States on that phone, ... you're going to have to answer to the Coca-Cola Company." Dr. Strangelove 32