comp.lang.ada
 help / color / mirror / Atom feed
From: dewar@gnat.com (Robert Dewar)
Subject: Re: ADA and return functions (Strings)
Date: 19 May 2002 20:06:41 -0700
Date: 2002-05-20T03:06:42+00:00	[thread overview]
Message-ID: <5ee5b646.0205191906.7180ac5e@posting.google.com> (raw)
In-Reply-To: mailman.1021840081.14696.comp.lang.ada@ada.eu.org

"David C. Hoos, Sr." <david.c.hoos.sr@ada95.com> wrote in message news:<mailman.1021840081.14696.comp.lang.ada@ada.eu.org>...
> 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 :-)



  reply	other threads:[~2002-05-20  3:06 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-05-19  7:20 ADA and return functions (Strings) ProLogic
2002-05-19 10:38 ` David C. Hoos, Sr.
2002-05-19 14:14   ` ProLogic
2002-05-19 14:30   ` Robert Dewar
2002-05-19 20:23     ` sk
2002-05-20 13:08       ` Marin David Condic
2002-05-21  2:51         ` sk
2002-05-21 10:50           ` John English
2002-05-21 12:52           ` Marin David Condic
2002-05-21 14:39           ` Ted Dennison
2002-05-21 16:27             ` Jean-Pierre Rosen
2002-05-21 20:39             ` sk
     [not found]             ` <3CEAB094.6B9E14F7@myob.com>
2002-05-21 21:07               ` sk
2002-05-21 19:52         ` sk
2002-05-19 20:27     ` David C. Hoos, Sr.
2002-05-20  3:06       ` Robert Dewar [this message]
2002-05-20 15:29         ` Kevin Cline
2002-05-20 17:16           ` Larry Kilgallen
2002-05-19 21:06 ` Jeffrey Carter
2002-05-20  1:58   ` tmoran
2002-05-20  2:28     ` David C. Hoos, Sr.
2002-05-20  3:05       ` tmoran
2002-05-20  3:35         ` David C. Hoos, Sr.
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox