History of 'self' and why not at least 'my'?
Cesar Douady
cesar.douady at asim.lip6.fr
Fri Jan 11 11:44:26 EST 2002
In article <7xg05dckxa.fsf at ruckus.brouhaha.com>, "Paul Rubin"
<phr-n2002a at nightsong.com> wrote:
> Oleg Broytmann <phd at phd.pp.ru> writes:
>> "Self" was borrowed from Object Pascal family (Modula-3, I think).
>
> And also Smalltalk and maybe even Simula.
What about saying that :
@x
stands for
self.x
or more precisely the field x of the first argument of the function ?
Generally speaking, I do not like shortcuts (that's the main reason I do
not like perl) but it is true that "self." is so used that it justifies a
shorter syntax.
More information about the Python-list
mailing list