From: "Ed Falis" <falis@verizon.net>
Subject: Re: What is the point of Private?
Date: Thu, 28 Apr 2005 23:40:06 GMT
Date: 2005-04-28T23:40:06+00:00 [thread overview]
Message-ID: <op.spyuo3l55afhvo@localhost> (raw)
In-Reply-To: d4rr3r$n92$1@news.freedom2surf.net
On Thu, 28 Apr 2005 19:22:23 -0400, Simon Smith <Simon@skcs.co.uk> wrote:
> however I dont really understand the point of it.
>
> Why is it there? I am sure I have heard talk that its to stop the client
> from seeing exactly how the data is stored/manipulated however if people
> really did want to know this wouldn't they just scroll down the ada spec
> file and find out for themselves or am I missing something here?
The point is not to hide information from developers - it's to narrow the
way that client code interacts with the services provided by a package, to
provide interfaces that are straightforward to reason about.
An useful way to think about package specs is that the public part
provides a logical interface representing the abstractions provided by the
package, while the private part provides any additional relevant physical
interface that the compiler might need. (I believe this metaphor is from
Tucker Taft).
next prev parent reply other threads:[~2005-04-28 23:40 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-28 23:22 What is the point of Private? Simon Smith
2005-04-28 23:40 ` Ed Falis [this message]
2005-04-29 3:14 ` Jeffrey Carter
2005-04-29 9:07 ` Peter Amey
2005-04-30 3:27 ` Jeffrey Carter
2005-04-30 0:49 ` chris
2005-05-01 22:57 ` Simon Smith
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox