May 21, 2010
12:53 a.m.
Ben Finney wrote:
Something like "1 argument in addition to 'self'" would be reasonably clear and would cover both situations.
Except that there's nothing special to the syntax or parser about the name ‘self’.
That's true, but the use of the word 'self' here isn't meant to refer to the name of a parameter. The message is aimed at the caller of the function, who doesn't necessarily know or care what the parameter is actually called. The important thing is that it represents the object the method is being called for, and 'self' is the traditional term used when talking about that. I can't think of anything that would be more accurate without being excessively verbose or pedantic. -- Greg