[Python-3000] Kill "generic functions"!

Guido van Rossum guido at python.org
Fri Apr 7 02:10:13 CEST 2006


On 4/6/06, Antoine Pitrou <solipsis at pitrou.net> wrote:
> But overloaded methods as they exist now have exactly the same
> expression as non-overloaded methods, all the machinery (mro walking
> etc.) being hidden from the programmer.

What type of overloading are you referring to? The way I think about
it, Python doesn't *have* overloading. Perhaps you're thinking of
overriding? Totally different beast!

> On the contrary, this new "overloaded function" mechanism requires the
> explicit use of a special decorator to specify that the function can be
> overloaded, and another special decorator to specify that we are
> currently overloading a function. Thus you would be referring to two
> different programming schemes with the same word. It's confusing IMO.

--
--Guido van Rossum (home page: http://www.python.org/~guido/)


More information about the Python-3000 mailing list