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 autolearn=unavailable autolearn_force=no version=3.4.4 Path: eternal-september.org!reader01.eternal-september.org!.POSTED!not-for-mail From: "Jeffrey R. Carter" Newsgroups: comp.lang.ada Subject: Re: class wide iterable (and indexable) Date: Sat, 5 Jan 2019 18:05:48 +0100 Organization: Also freenews.netfront.net; news.tornevall.net; news.eternal-september.org Message-ID: References: <2a6929c5-72fa-4d84-953a-44ea4597ab38@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Injection-Date: Sat, 5 Jan 2019 17:05:48 -0000 (UTC) Injection-Info: reader01.eternal-september.org; posting-host="33b38f4d1ec7f2d731d8d504259f3764"; logging-data="23159"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+5tYdfB/erKvEIY+iQuRg6v6A8S9YpSM0=" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 Cancel-Lock: sha1:gsbuwJp8T5o40MGmWCe1d3iSj0E= In-Reply-To: Content-Language: en-US Xref: reader01.eternal-september.org comp.lang.ada:55195 Date: 2019-01-05T18:05:48+01:00 List-Id: On 1/5/19 10:21 AM, Randy Brukardt wrote: > > Dmitry is of course an all-interface all the time sort of guy. All I see > from that is a vast amount of typing to get nothing in particular in return. > [But I'm not much of a fan of OOP, either; the big advantage of OOP is > requiring few recompiles when adding features. That was a big deal in 1990, > but it hardly matters today. (I can recompile the entirety of Janus/Ada - > 250,000 lines - in 15 minutes or so. Why try to save compiles?) And for > that, you get to type dozens and dozens of declarations to do anything. > While the supposedly terrible case statement solution gives you case > completeness checks, variant checks, and essentially has no more chance of > failure (and costs a lot less, and keeps all of the similar code together > rather that scattering it about to every different kind of object).] A major problem with programming by extension is that it requires violating the S/W-engineering principle of locality. S/W engineers don't willingly violate those principles, so we can conclude that those who like programming by extension are not S/W engineers. -- Jeff Carter "What's special about Agile is that it's a mix of the best and the worst." Bertrand Meyer 148