Guido's new method definition idea

Tommy Grav tgrav at mac.com
Sat Dec 6 12:21:39 EST 2008


On Dec 6, 2008, at 11:42 AM, bearophileHUGS at lycos.com wrote:
> class ThisIsAClass:
>    def $some_method(arg1, arg2):
>        $value = arg1 + $foo + $bar + $baz * arg2
>    ...

I think my biggest problem with this is what got me off Perl.
Add $, together with already used @ and maybe some other
identifiers and I start loosing track of what each of the character
means. It is fine when you are used to the language, but
learning it becomes a harder proposition. self.foo is self-explanatory
(no pun intended) to me, $foo is not.

Cheers
   Tommy



More information about the Python-list mailing list