OO re-factoring (was Pythonese/Efficiency/Generalese critique [on Tutor])

Greg Ewing greg at cosc.canterbury.ac.nz
Wed Jun 8 22:22:23 EDT 2005


Dan Sommers wrote:

> I don't remember the original post, but methods and recursion are *not*
> mutually exclusive (e.g., an Integer class with a factorial method, or a
> binary tree class whose nodes are also binary trees).

Also, don't think that you have to make everything OO.
OO isn't necessarily better than non-OO. It's a means
to an end, not an end in itself.

-- 
Greg Ewing, Computer Science Dept,
University of Canterbury,	
Christchurch, New Zealand
http://www.cosc.canterbury.ac.nz/~greg



More information about the Python-list mailing list