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.3 required=5.0 tests=BAYES_00,INVALID_MSGID autolearn=no autolearn_force=no version=3.4.4 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 103376,73036d0217be91e2 X-Google-Attributes: gid103376,public From: dewar@merv.cs.nyu.edu (Robert Dewar) Subject: Re: Inheritance versus Generics Date: 1997/04/29 Message-ID: #1/1 X-Deja-AN: 238148016 References: <33601924.774@flash.net> <3360CA7A.2272@elca-matrix.ch> <862296320.11810@dejanews.com> Organization: New York University Newsgroups: comp.lang.ada Date: 1997-04-29T00:00:00+00:00 List-Id: Bertrand said <> It is always tempting to try to unify features in programming languages which seem related, and it has always been tempting for designers to try to avoid having both inheritance and genericity, but given the very clear attempts that have been rethought (C++ adding templates, and Ada adding generalized inheritance), it really seems like we cannot avoid having both facilities. Bertrand's argument is certainly convincing, but in a way it is even more convincing when advocates of the contrary viewpoint come to change their mind. My view is that at this stage, any language not providing effective facilities in both departments is definitely decrepit (you may make up your own list of languages that are thus declared decrepit, or perhaps, with less flowery language, lacking :-) -- one interesting entry on that list is OO-COBOL, which has remarkably powerful OO features, including full inheritance, but completely lacks genericity (well I suppose you can use COPY REPLACING for a very limited version of text oriented macros to address some subset of the problem ...) Robert Dewar