Unification of Methods and Functions
Greg Ewing
greg at cosc.canterbury.ac.nz
Wed May 12 22:58:19 EDT 2004
David MacQuigg wrote:
> The real issue is whether we can unify all forms of functions and
> methods. This requires we do something different with 'self'. From a
> unification standpoint, an equally acceptable solution is that we add
> 'self' to *all* functions and methods, whether they need it or not.]
I still don't see the benefit of unifying them to this degree.
Even if you added 'self' to every function, there would *still*
be two kinds of function, those that use their 'self' and those
that don't. The difference in usage is still there, even if it's
not directly reflected in the syntax. I can't see the point in
trying to pretend otherwise.
--
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