From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on polar.synack.me X-Spam-Level: X-Spam-Status: No, score=-0.3 required=5.0 tests=BAYES_00, REPLYTO_WITHOUT_TO_CC autolearn=no autolearn_force=no version=3.4.4 X-Google-Thread: 103376,78609accbfa860fe X-Google-Attributes: gid103376,domainid0,public,usenet X-Google-Language: ENGLISH,ASCII-7-bit Path: g2news1.google.com!news2.google.com!news.glorb.com!feeder.erje.net!feeder1-2.proxad.net!proxad.net!feeder2-2.proxad.net!newsfeed.arcor.de!newsspool3.arcor-online.net!news.arcor.de.POSTED!not-for-mail From: "Dmitry A. Kazakov" Subject: Re: usefulness of "data hiding" Newsgroups: comp.lang.ada User-Agent: 40tude_Dialog/2.0.15.1 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Reply-To: mailbox@dmitry-kazakov.de Organization: cbb software GmbH References: <72f07ba4-f06d-44bf-9759-0e6f0d0426d0@h20g2000yqn.googlegroups.com> Date: Fri, 16 Jan 2009 09:57:30 +0100 Message-ID: NNTP-Posting-Date: 16 Jan 2009 09:57:30 CET NNTP-Posting-Host: 4bf2096a.newsspool1.arcor-online.net X-Trace: DXC=eDN;nnJBL1]U6b:FjPaGjQic==]BZ:af^4Fo<]lROoRQ^YC2XCjHcbYZ29Q9OdP3F[DNcfSJ;bb[UIRnRBaCd 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