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-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,228dbf2f126edf08 X-Google-Attributes: gid103376,public X-Google-ArrivalTime: 2002-05-19 20:06:42 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: dewar@gnat.com (Robert Dewar) Newsgroups: comp.lang.ada Subject: Re: ADA and return functions (Strings) Date: 19 May 2002 20:06:41 -0700 Organization: http://groups.google.com/ Message-ID: <5ee5b646.0205191906.7180ac5e@posting.google.com> References: <3ce75220@news.comindico.com.au> <5ee5b646.0205190630.237196b3@posting.google.com> NNTP-Posting-Host: 205.232.38.14 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1021864002 1040 127.0.0.1 (20 May 2002 03:06:42 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 20 May 2002 03:06:42 GMT Xref: archiver1.google.com comp.lang.ada:24398 Date: 2002-05-20T03:06:42+00:00 List-Id: "David C. Hoos, Sr." wrote in message news:... > The use of verb phrases as the names of functions is not > considered the best practice addording tho the Ada Style > Guide. Instead function names should be noun phrases. ? So I would simply name this function Version. This is of course merely a matter of personal preference. Personally I prefer to use the noun phrase (like Version) if the version is something that is an immediately available attribute, but I incline to Get_Version if there is significant work to do in obtaining it. It is partly a matter of whether you think of the function as a mathematical function, or whether you think of it as a significant block of code that has something to do. Anyway, choose names that sound right to you, you do not have to follow simplistic rules :-)