comp.lang.ada
 help / color / mirror / Atom feed
From: Georg Bauhaus <bauhaus@futureapps.de>
Subject: Re: Classes and packages - recommended practice
Date: Mon, 12 Dec 2005 19:58:05 +0100
Date: 2005-12-12T19:58:04+01:00	[thread overview]
Message-ID: <439dc83c$0$27888$9b4e6d93@newsread4.arcor-online.net> (raw)
In-Reply-To: <dnjtcg$f2f$1@sunnews.cern.ch>

Maciej Sobczak wrote:
> with Shapes;
> use Shapes;
[lots more]

> My question is - when do you use which form?

I'll rarely use all types from all packages in the same place when
possible, because I want to leave that to the dispatching mechanism. :-)
So this is not the most frequent case.
That aside, I'm fond of plural/singular because of locality
of reference: "Object" doesn't say much compared to "Triangle",
and forces some form of qualification if you don't want to bother
your readers with doing the lookup themselves.

OTOH, in Ada 2005, we won't need so many "use"s
because of distinguished receiver notation...

-- Georg 



  reply	other threads:[~2005-12-12 18:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-12-12 13:19 Classes and packages - recommended practice Maciej Sobczak
2005-12-12 18:58 ` Georg Bauhaus [this message]
2005-12-12 22:17   ` Randy Brukardt
2005-12-12 19:02 ` Martin Krischik
replies disabled

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