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: fac41,c52c30d32b866eae X-Google-Attributes: gidfac41,public X-Google-Thread: 1108a1,c52c30d32b866eae X-Google-Attributes: gid1108a1,public X-Google-Thread: 103376,2ea02452876a15e1 X-Google-Attributes: gid103376,public From: jhd@herold.franken.de (Joachim Durchholz) Subject: Re: Real OO Date: 1996/04/30 Message-ID: <67pyPs0-3RB@herold.franken.de>#1/1 X-Deja-AN: 152644943 references: newsgroups: comp.lang.eiffel,comp.lang.ada,comp.object Date: 1996-04-30T00:00:00+00:00 List-Id: jsa@organon.com wrote 30.04.96 on Re: Real OO: > Well, whether it is a "real" problem or not, you have to introduce > contrived/extraneous classes in an attempt to define the things. Well, I can't avoid this if I equate module and class. In Ada, I'd have to create lots of extraneous packages - doesn't sound much of a difference to me. You always need some syntactic sugar if you want to add a new function as an afterthought - be it a class, package, module, or whatever. If you don't want syntactic sugar, use C. > > poor abstraction that got through because the programmer > So what makes a function a "poor" abstraction??? Use the definition that suits your taste :) . > In the right > context (and the one under consideration is a good example), it > can be the perfect abstraction. Of course. My point wasn't that functions as abstractions cannot be, it's just that *usually* functions are not the right tool. I don't think it is bad that everything is implemented as a class even though I fully recognize that > it just is plain not true that all the > world's a class. Still, classes are as good as any other concept for making a module, so why not use them? Usually, an abstraction isn't embodied in a single class, but in a set of related classes. While the notion of "class" is heavyweigth, actual classes are often quite lightweight. -Joachim -- Im speaking for myself here.