uggedal + oop   23

The History of Python: Adding Support for User-defined Classes
Instead, I decided to give up on the idea of implicit references to instance variables. Languages like C++ let you write this->foo to explicitly reference the instance variable foo (in case there’s a separate local variable foo). Thus, I decided to make such explicit references the only way to reference instance variables. In addition, I decided that rather than making the current object ("this") a special keyword, I would simply make "this" (or its equivalent) the first named argument to a method. Instance variables would just always be referenced as attributes of that argument.
python  language  design  architecture  oop  object  class  explicit  self 
february 2009 by uggedal

Copy this bookmark:



description:


tags: