[Python-Dev] string.find() again (was Re: timsort for jython)
Guido van Rossum
guido@python.org
Tue, 06 Aug 2002 11:31:45 -0400
> Guido> Yeah, once you allow overloading, you can't prevent abuse. I've heard
> Guido> of bad C++ programmers who write A+B meaning an assignment to A.
>
> That kind of thing is uncommon, partly because it can't be done for
> built-in types. Such practices are widely derided in the C++
> community, too.
And that's exactly my answer in the Python case, too. You can't
prevent people from writing bad code, but you can make them look
foolish. :-)
--Guido van Rossum (home page: http://www.python.org/~guido/)