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=unavailable autolearn_force=no version=3.4.4 X-Received: by 10.36.88.69 with SMTP id f66mr6182711itb.14.1512323097203; Sun, 03 Dec 2017 09:44:57 -0800 (PST) X-Received: by 10.157.87.203 with SMTP id q11mr541927oti.8.1512323097080; Sun, 03 Dec 2017 09:44:57 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.org!reader02.eternal-september.org!feeder.eternal-september.org!news.kjsl.com!usenet.stanford.edu!i6no2175406itb.0!news-out.google.com!b73ni293ita.0!nntp.google.com!i6no2175403itb.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Sun, 3 Dec 2017 09:44:56 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=2601:191:8303:2100:5985:2c17:9409:aa9c; posting-account=fdRd8woAAADTIlxCu9FgvDrUK4wPzvy3 NNTP-Posting-Host: 2601:191:8303:2100:5985:2c17:9409:aa9c References: <889a3aed-4e6b-49c8-8c1c-6f1478e8e077@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Full view of a private partial view cannot be a subtype From: Robert Eachus Injection-Date: Sun, 03 Dec 2017 17:44:57 +0000 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Xref: reader02.eternal-september.org comp.lang.ada:49333 Date: 2017-12-03T09:44:56-08:00 List-Id: On Sunday, December 3, 2017 at 9:34:51 AM UTC-5, Jeffrey R. Carter wrote: =20 > Many people seem to think that as much as possible should be done through= type=20 > extension. They act as though the only tool they have is the hammer of ty= pe=20 > extension, and so view every problem as a nail. In my experience type ext= ension=20 > is usually best avoided whenever possible. Several decades ago, there was a fun paper: "Nesting in Ada is for the bird= s." by Lori Clarke et. al. https://dl.acm.org/citation.cfm?id=3D948651 It = may be time for a similar article about type extension. But it can't have = quite so catchy a title. Building a type using mix-ins works nicely, but y= ou want all the actual objects in the program to be of the (many) great gra= ndchild type. I'll have to do more thinking about it.