Everything to like
Posted Mar 30, 2005 11:03 UTC (Wed) by
pkolloch (subscriber, #21709)
In reply to:
Everything to like by Zarathustra
Parent article:
Evidence that Python is advancing into the enterprise (NewsForge)
Then there are things like (multiple) inheritance, which sadly I think there is no hope we will ever free ourselves of... oh well, I can try to pretend it doesn't exists, if only everyone else didn't feel so compelled to abuse it at every chance.
Any concrete reasons why you do not like multiple inheritance? I can see that you can abuse them -- it's probably impossible to make a programming language totally abuse prohibitive. I just often wish for multiple inheritance if I program in Java. Look at classes like PropertyChangeSupport which provide some helper classes for event management. If you want to integrate this into an existing class, you either have to program that stuff or use really tedious delegation. Maybe not the best example, but I wanted to use something from the standard library...
(
Log in to post comments)