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=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.4 X-Google-Thread: 103376,81bb2ce65a3240c3 X-Google-NewGroupId: yes X-Google-Attributes: gida07f3367d7,domainid0,public,usenet X-Google-Language: ENGLISH,UTF8 Received: by 10.68.232.42 with SMTP id tl10mr3874878pbc.7.1335389407585; Wed, 25 Apr 2012 14:30:07 -0700 (PDT) Path: r9ni98246pbh.0!nntp.google.com!news1.google.com!goblin2!goblin1!goblin3!goblin.stu.neva.ru!usenet.pasdenom.info!aioe.org!.POSTED!not-for-mail From: =?utf-8?Q?Yannick_Duch=C3=AAne_=28Hibou57?= =?utf-8?Q?=29?= Newsgroups: comp.lang.ada Subject: Re: What would you like in Ada202X? Date: Wed, 25 Apr 2012 23:30:05 +0200 Organization: Ada @ Home Message-ID: References: <3637793.35.1335340026327.JavaMail.geo-discussion-forums@ynfi5> <4f97bf40$0$6559$9b4e6d93@newsspool4.arcor-online.net> NNTP-Posting-Host: ONmq6WKLpt7fkfZHL79Etw.user.speranza.aioe.org Mime-Version: 1.0 X-Complaints-To: abuse@aioe.org User-Agent: Opera Mail/11.62 (Linux) X-Notice: Filtered by postfilter v. 0.8.2 Content-Type: text/plain; charset=utf-8; format=flowed; delsp=yes Content-Transfer-Encoding: Quoted-Printable Date: 2012-04-25T23:30:05+02:00 List-Id: Le Wed, 25 Apr 2012 23:14:51 +0200, Jeffrey Carter = a =C3=A9crit: >> Imagine a simple case: a serialization of some private object type, w= ith >> multiple codecs. I instinctively make each codecs, a child package of= = >> the >> package defining the serialized type, so that they can build an = >> instance of >> type. Or else, you would have to expose to the big world, methods = >> intended for >> serialization only, and serialization is often related to the interna= l >> representation of the serialized item (although not required). Can't = = >> give an >> easy example, but I also believe this would make some bindings more = >> difficult. > > Imagine a simple solution: a collection of private packages that = > implement the type and its operations, and a public package that makes= = > public only those things that should be public. And you have to modify and respecify the package each time you want to = extend it? The child package way is more modular. -- = =E2=80=9CSyntactic sugar causes cancer of the semi-colons.=E2=80=9D [1] =E2=80=9CStructured Programming supports the law of the excluded muddle.= =E2=80=9D [1] [1]: Epigrams on Programming =E2=80=94 Alan J. =E2=80=94 P. Yale Univers= ity