Protected Methods and Python

Dirk Gerrits dirk at gerrits.homeip.net
Mon Apr 14 20:19:49 CEST 2003


Jan Dries wrote:
> Don't worry too much about protected methods. Bjarne Stroustrup, creator 
> of the C++ language, considers them to be a design mistake, and now 
> regrets they were ever added to C++. See "The Design and evolution of 
> C++" by Bjarne Stroustrup, page 302.
> Java and I assume Ruby as well simply copied the concept from C++.

I don't have the book with me, but are you sure it wasn't protected DATA 
members that Bjarne regretted?

Regards,
Dirk Gerrits







More information about the Python-list mailing list