Guido's new method definition idea

Antoine De Groote antoine at vo.lu
Sat Dec 6 10:56:41 EST 2008


Russ P. wrote:
> On Dec 6, 1:02 am, Antoine De Groote <anto... at vo.lu> wrote:
>> Allowing "$" as a substitute for "self" wouldn't require this new syntax.
>>
>> class C:
>>     def method($, arg):
>>         $.value = arg
>>
>> I'm strongly against this. This looks ugly and reminds me of Perl and
>> Ruby. (I don't have anything against these languages, but there's a
>> reason I use Python).
> 
> It looks "ugly" simply because it is new to you. Once you get used to
> it, I'll bet it will look fine. And resemblance to another language is
> not a very good reason to reject it.

I would not say that "ugly" and "new" (or "unused" for that matter) are
the same. There are going to be a number of things in Python 3 that are
new and to which one is not used, but they certainly are not ugly. Ugly
is of course a matter of taste, I'll give you that, but to me it's still
ugly.



More information about the Python-list mailing list