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!reader02.eternal-september.org!feeder.eternal-september.org!aioe.org!.POSTED!not-for-mail From: "Dmitry A. Kazakov" Newsgroups: comp.lang.ada Subject: Re: Using interfaces Date: Sun, 3 Jun 2018 09:06:30 +0200 Organization: Aioe.org NNTP Server Message-ID: References: <795d1d54-0868-4745-8132-b38165494f39@googlegroups.com> <9fa93d0f-30d2-4c79-b0ef-f94d96862da2@googlegroups.com> NNTP-Posting-Host: CvkHMVp693S8Z+lk11jyqg.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.8.0 Content-Language: en-US X-Notice: Filtered by postfilter v. 0.8.3 Xref: reader02.eternal-september.org comp.lang.ada:52867 Date: 2018-06-03T09:06:30+02:00 List-Id: On 2018-06-03 04:11, Shark8 wrote: > On Saturday, June 2, 2018 at 12:43:34 PM UTC-6, Dan'l Miller wrote: >> >> For example, in many modern programming languages, Ada included, there is a natural tension between the OO feature-set and the generic/parameterized-types feature-set as 2 nearly duplicated ways of accomplishing analogous goals. > > No. Yes. Both are forms of polymorphism with the same goal of supporting generic programming = programming in terms of sets of types. > OOP and Generics are orthogonal in their goals: https://www.youtube.com/watch?v=9lv2lBq6x4A They are orthogonal only in terms of implementation, so that they can be mixed and used independently. [ Macros are automatically a meta-language and thus orthogonal to anything in the language. ] -- Regards, Dmitry A. Kazakov http://www.dmitry-kazakov.de