Attack a sacred Python Cow

Terry Reedy tjreedy at udel.edu
Sat Jul 26 17:17:09 EDT 2008



Torsten Bronger wrote:
> Hallöchen!
> 
> Terry Reedy writes:
> 
>> [...]
>>
>> Or the proposal would have to be that 'self' is mandatory for all
>> programmers in all languages.  I think *that* would be
>> pernicious. People are now free to write the more compact 's.sum =
>> s.a + s.b + s.c' if they want instead of the 'self' version.  And
>> again, not everyone writes in English.
> 
> Of course, "self" would have to become a reserved word.  You could
> say that this may break some code,

Will break.

> but I don't see much freedom removed from the language.
 >  After all, being a German, I still can't
> write "Für i in range(10)".  ;-)

But you can write 'for ubermenchen in range(10):' and in 3.0, with 
diacritics added.  Would you really feel no loss of freedom if Guido 
make i0, i1, ... into keywords, which means they could not be used 
elsewhere, and mandated them as for loop index variables?




More information about the Python-list mailing list