The History of Python: Adding Support for User-defined Classes
february 2009 by uggedal
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
related tags
architecture ⊕ bound ⊕ class ⊕ composition ⊕ definition ⊕ delegation ⊕ design ⊕ explicit ⊕ extending ⊕ framework ⊕ functional ⊕ inheretance ⊕ java ⊕ javascript ⊕ jquery ⊕ language ⊕ lisp ⊕ metaclasses ⊕ metaprogramming ⊕ method ⊕ minimalistic ⊕ modules ⊕ monkeypatching ⊕ mootools ⊕ namespace ⊕ object ⊕ oop ⊖ patterns ⊕ private ⊕ programming ⊕ prototype ⊕ python ⊕ ruby ⊕ self ⊕ smalltalk ⊕ style ⊕ tdd ⊕ testing ⊕ unbound ⊕ yui ⊕Copy this bookmark: