[XML-DEV Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

There is nothing wrong with MI (was Re: Schemata are not justconstraints

  • From: Uche Ogbuji <uche.ogbuji@f...>
  • To: Danny Ayers <danny@p...>
  • Date: Fri, 29 Dec 2000 11:01:49 -0700 (MST)

diamond of death
> Just a comment on multiple inheritance - it can cause a lot of problems,
> especially where naming is important :  base classes with identical function
> names can get pretty confusing. The Java lobby have shown pretty well that
> m.i. isn't essential to an OO system (a Java class can only extend the
> functionality of one other class, but can implement any number of abstract
> interfaces) - if anything, removing it can make life easier.

Oh yeah?  Tell that to anyone who has had to use CORBA in Java.  Whenever
I hear people griping at how complex CORBA is, I laugh and show them a
typical Python CORBA program.  Ooooooh!  Where's all the complexity?  Try
doing _any_ sort of mix-in functionality in Java.  Now paste your hair
back on.

Lack of multiple inheritance is just one of the arms in the
straitjacket Java throws around developers.  Like it or not, there are
many more useful classification relationships than just interface
inheritance and implementation-sharing.  There are aggregation, interface
inheritance, implementation inheritance, delegation, environmental
acquisition, and others that I can't remember off-head.  Java allows only
one big hammer rather than all these fine tools.

C++'s problem was that it conflated interface with implementation
inheritance.  I'm not sure what Java's creators were thinking by
"solving" this by killing multiple implementation inheritance.  The
"diamond of death" is not caused by the evils of multiple inheritance.  It
is caused by programmers who don't understand
generalization/specialization.  I've never had a problem in C++ avoiding
the DoD using mix-in classes.

But let's not get me started on Java.  Nasty language.  Absolute scourge.
Then along comes Microsoft with C#.  I had honestly expoected better from
them.  But let's not get me started...


-- 
Uche Ogbuji                               Principal Consultant
uche.ogbuji@f...               +1 303 583 9900 x 101
Fourthought, Inc.                         http://Fourthought.com
4735 East Walnut St, Ste. C, Boulder, CO 80301-2537, USA
Software-engineering, knowledge-management, XML, CORBA, Linux, Python


PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
 

Stylus Studio has published XML-DEV in RSS and ATOM formats, enabling users to easily subcribe to the list from their preferred news reader application.


Stylus Studio Sponsored Links are added links designed to provide related and additional information to the visitors of this website. they were not included by the author in the initial post. To view the content without the Sponsor Links please click here.

Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.