comp.lang.ada
 help / color / mirror / Atom feed
From: Shark8 <onewingedshark@gmail.com>
Subject: Re: Vocabulary matter: Component vs Element vs Item
Date: Sat, 27 Jul 2013 08:57:29 -0700 (PDT)
Date: 2013-07-27T08:57:29-07:00	[thread overview]
Message-ID: <1c4c9160-4f53-4e54-8f5c-b030c1e760d7@googlegroups.com> (raw)
In-Reply-To: <ksvf5l$gsb$1@loke.gir.dk>

On Friday, July 26, 2013 9:35:16 PM UTC-6, Randy Brukardt wrote:
> 
> 
> Yikes! This gave me a flashback to long discussions about the names of 
> parameters and the like. I hope I don't have nightmares tonight. :-) ARG 
> discussions about naming are rarely pleasant, because *everyone* has an 
> opinion, and often they're completely different.

That's very true. I'm surprised I haven't seen more usage of fully-qualified naming for parameter types. As an example reformulating from Booch's convention:

    package Stack_Sequential_Unbounded_Managed_Iterator is
       type Stack is limited private;
       procedure Clear (The_Stack : in out Stack);

becomes the following:
    package Stack_Sequential_Unbounded_Managed_Iterator is
        type Stack is limited private;
        procedure Clear (Stack : in out Stack_Sequential_Unbounded_Managed_Iterator.Stack);

This allows for some very nice named parameter associations with comparatively little effort on the part of the programmer writing the package (especially when you use RENAMES on the package's fully-qualified name in the package-body).


  reply	other threads:[~2013-07-27 15:57 UTC|newest]

Thread overview: 20+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-07-25 16:38 Vocabulary matter: Component vs Element vs Item Yannick Duchêne (Hibou57)
2013-07-25 19:01 ` Simon Wright
2013-07-25 19:29   ` Jeffrey Carter
2013-07-25 20:12   ` Yannick Duchêne (Hibou57)
2013-07-26  7:59     ` Simon Wright
2013-07-26 18:42       ` Yannick Duchêne (Hibou57)
2013-07-26 18:53         ` Yannick Duchêne (Hibou57)
2013-07-26 19:29         ` Yannick Duchêne (Hibou57)
2013-07-27  3:42           ` Randy Brukardt
2013-07-27  8:18         ` Simon Wright
2013-07-27  3:35       ` Randy Brukardt
2013-07-27 15:57         ` Shark8 [this message]
2013-07-26  9:56 ` Manuel Collado
2013-07-26 17:24 ` Charles H. Sampson
2013-07-26 18:29   ` Adam Beneschan
2013-07-26 19:12     ` Yannick Duchêne (Hibou57)
2013-07-26 19:56       ` Adam Beneschan
2013-07-29 20:25 ` Eryndlia Mavourneen
2013-07-29 22:30   ` Yannick Duchêne (Hibou57)
2013-07-30 13:46     ` Eryndlia Mavourneen
replies disabled

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