should "self" be changed?
zipher
dreamingforward at gmail.com
Sat May 30 19:15:42 EDT 2015
On Wednesday, May 27, 2015 at 2:39:21 AM UTC-5, Marko Rauhamaa wrote:
> Chris Angelico <rosuav at gmail.com>:
>
> > Using some other name in place of "self" should definitely remain
> > *possible*, but not commonly done.
>
> You are effectively making the argument that Python has made a mistake
> by not giving "self" a special, language-level status.
I'm making that claim. Guido's arguments are based on a simple lexical definition of the language. If the lexical definition were sophisticated enough to feed into GCC as a front-end, for example, then it wouldn't have to be so abnormal. It's a short-cut for a less mature language.
Mark
More information about the Python-list
mailing list