comp.lang.ada
 help / color / mirror / Atom feed
From: "Dmitry A. Kazakov" <mailbox@dmitry-kazakov.de>
Subject: Re: usefulness of "data hiding"
Date: Fri, 16 Jan 2009 09:57:30 +0100
Date: 2009-01-16T09:57:30+01:00	[thread overview]
Message-ID: <o029wq1r5hym.1r8ep5ye1ieoi$.dlg@40tude.net> (raw)
In-Reply-To: 72f07ba4-f06d-44bf-9759-0e6f0d0426d0@h20g2000yqn.googlegroups.com

On Thu, 15 Jan 2009 16:51:38 -0800 (PST), Russ P. wrote:

> As many of you probably know, Python had no data hiding.

Python is a dynamically typed language. When dynamic typing is considered
conceptually that inevitably leads you to weak and then to no typing. In an
effectively untyped framework (this includes massive type inference as
well), you necessarily have to drop encapsulation. There is nothing to
hide, and nothing can be hidden.

The problem is that languages like Ada, which are supposed to represent an
alternative, lag behind in developing their type systems. In Ada you
trivially cannot abstract a record type member, or cannot declare an
abstract  type to serve as a discrete index of an array, etc. So hiding
does not work there as it could and should. 

-- 
Regards,
Dmitry A. Kazakov
http://www.dmitry-kazakov.de



  parent reply	other threads:[~2009-01-16  8:57 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-01-16  0:51 usefulness of "data hiding" Russ P.
2009-01-16  1:08 ` Russ P.
2009-01-16  1:33 ` Adam Beneschan
2009-01-17 19:05   ` Marc A. Criley
2009-01-19 16:15     ` Adam Beneschan
2009-01-16  8:57 ` Dmitry A. Kazakov [this message]
2009-01-16 23:23   ` sjw
2009-01-17  8:53     ` Dmitry A. Kazakov
2009-01-18 13:07   ` Graham Stark
2009-01-18 14:17     ` Dmitry A. Kazakov
2009-01-16 17:21 ` Nicholas Collin Paul Gloucester
replies disabled

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