Lambda the Ultimate

inactiveTopic Using Mix-ins with Python
started 3/22/2001; 12:03:08 AM - last post 3/22/2001; 9:35:22 AM
andrew cooke - Using Mix-ins with Python  blueArrow
3/22/2001; 12:03:08 AM (reads: 2273, responses: 4)
Using Mix-ins with Python
Multiple inheritance seems to be out of fashion in some places (Java, C#) - this article shows when it can be useful (there's a story that mixin was a way of specifying toppings for ice-cream near where they developed Lisp/CLOS).

Seen at QubeCorner, which has some good info.
Posted to Python by andrew cooke on 3/22/01; 12:05:16 AM

Ehud Lamm - Re: Using Mix-ins with Python  blueArrow
3/22/2001; 2:15:54 AM (reads: 865, responses: 3)
One should note that mixins are, in fact, a restricted form of MI. Many site it as the only legitimate use of MI, and conclude that 'full' MI isn't worth the trouble.

andrew cooke - Re: Using Mix-ins with Python  blueArrow
3/22/2001; 3:16:36 AM (reads: 934, responses: 2)
Is there a definition of mixins that is strong enough to make this explicit within a programming language (or is it more an "approach" than a hard and fast rule)?

Ehud Lamm - Re: Using Mix-ins with Python  blueArrow
3/22/2001; 4:50:32 AM (reads: 1020, responses: 1)
Check this out. I haven't read it yet.

Ehud Lamm - Re: Using Mix-ins with Python  blueArrow
3/22/2001; 9:35:22 AM (reads: 1078, responses: 0)
There are also useful references, which are directly linked by the wonderful citeseer.

Much less academic and theoretical, but also worth checking is the discussion of MI in the Ada95 Rationale (see section 4.6.2). Ada only has single inheritance (thank god!), but you can create mixins using generic (i.e, parametrized) units.