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,f66d11aeda114c52 X-Google-Attributes: gidfac41,public X-Google-Thread: 103376,f66d11aeda114c52 X-Google-Attributes: gid103376,public From: paul.johnson@gecm.com (Paul Johnson) Subject: Re: Building blocks (Was: Design By Contract) Date: 1997/09/08 Message-ID: <5v0bph$n98$2@miranda.gmrc.gecm.com>#1/1 X-Deja-AN: 270645113 Distribution: world References: <5ulurp$aj8$1@miranda.gmrc.gecm.com> <5un58u$9ih$1@gonzo.sun3.iaf.nl> Organization: GEC-Marconi Research Centre Newsgroups: comp.lang.ada,comp.lang.eiffel Date: 1997-09-08T00:00:00+00:00 List-Id: In article <5un58u$9ih$1@gonzo.sun3.iaf.nl>, geert@gonzo.sun3.iaf.nl says... >Paul Johnson wrote: [On language features versus idiomatic programming] > For example Eiffel has direct support for multiple inheritance > (MI). Ada requires you to play games with generic parameters > in order to achieve the same effect.'' > >I find that it is often better to combine simple building blocks >into the more complex one you need, than to use a more complex >feature that is not exactly what you need and may be overkill. [Experiences based on Ada versus C++ omitted] Please don't judge a language feature (*any* feature) by its implementation in C++. The language is a bodge. Take a look at Eiffel instead. > When > combining ill-defined over-complex things like MI, C++ templates > and exceptions, you know for sure the result will be too complex > and not what you want. And if you do it in C++ I'd agree with you. However in Eiffel you will find that MI, templates and exceptions all fit together in a unified whole. In fact the Eiffel exception mechanism is superior to the Ada one because it is built on a theoretical model of software engineering. Paul. -- Paul Johnson | GEC-Marconi Ltd is not responsible for my opinions. | +44 1245 242244 +-----------+-----------------------------------------+ Work: | You are lost in a twisty maze of little Home: | standards, all different.