comp.lang.ada
 help / color / mirror / Atom feed
From: kcline17@hotmail.com (Kevin Cline)
Subject: Re: ADA and return functions (Strings)
Date: 20 May 2002 08:29:14 -0700
Date: 2002-05-20T15:29:14+00:00	[thread overview]
Message-ID: <ba162549.0205200729.7c70fe5c@posting.google.com> (raw)
In-Reply-To: 5ee5b646.0205191906.7180ac5e@posting.google.com

dewar@gnat.com (Robert Dewar) wrote in message news:<5ee5b646.0205191906.7180ac5e@posting.google.com>...
> "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. 

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?



  reply	other threads:[~2002-05-20 15:29 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
2002-05-20 15:29         ` Kevin Cline [this message]
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