preemptive OOP?

John Salerno johnjsal at NOSPAMgmail.com
Thu Sep 28 15:25:17 EDT 2006


Erik Johnson wrote:

>     My feeling is that there is no good reason to add the complexity of your
> own custom classes if they provide no additional data or behaviour. If you
> know you have plans to add your own attributes and/or methods to MyNotebook
> soon, there's no harm in doing this now, but why? You can always create your
> own custom subclass at the point when you have something of value to add and
> through the mircale of polymorphism, it will function everywhere a Notebook
> would.

I think you're right. In fact, one thing I always loved about Python was 
that OOP is optional, and here I am trying to force it upon myself 
unnecessarily! :)



More information about the Python-list mailing list