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,FREEMAIL_FROM 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-20 08:38:57 PST Path: archiver1.google.com!postnews1.google.com!not-for-mail From: kcline17@hotmail.com (Kevin Cline) Newsgroups: comp.lang.ada Subject: Re: ADA and return functions (Strings) Date: 20 May 2002 08:29:14 -0700 Organization: http://groups.google.com/ Message-ID: References: <3ce75220@news.comindico.com.au> <5ee5b646.0205190630.237196b3@posting.google.com> <5ee5b646.0205191906.7180ac5e@posting.google.com> NNTP-Posting-Host: 192.76.70.227 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 8bit X-Trace: posting.google.com 1021908554 17317 127.0.0.1 (20 May 2002 15:29:14 GMT) X-Complaints-To: groups-abuse@google.com NNTP-Posting-Date: 20 May 2002 15:29:14 GMT Xref: archiver1.google.com comp.lang.ada:24418 Date: 2002-05-20T15:29:14+00:00 List-Id: dewar@gnat.com (Robert Dewar) wrote in message news:<5ee5b646.0205191906.7180ac5e@posting.google.com>... > "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. Selecting the name on this basis lets the implementation show through the interface. Would you change the function name if you changed the implementation to precompute the function result?