Decorator for Enforcing Argument Types

John Machin sjmachin at lexicon.net
Fri Dec 22 06:56:55 EST 2006


Duncan Booth wrote:
> "John Machin" <sjmachin at lexicon.net> wrote:
> > You are saying that you think that George thinks that they are
> > teaching efficient coding methods in OO classes??
> >
> No, but I hope they teach how to recognise patterns, and I imagine they
> also teach something about refactoring to remove switches or long if/elif
> chains. (My imagination may not, of course, bear any resemblance to real
> life.)

My point is that efficent coding methods, recognition of patterns and
refactoring are *general* comp sci concepts, they are not special to
OO. Why do you hope / imagine such things about  OO classes?




More information about the Python-list mailing list