Attack a sacred Python Cow
Torsten Bronger
bronger at physik.rwth-aachen.de
Sat Jul 26 17:35:22 EDT 2008
Hallöchen!
Terry Reedy writes:
> Torsten Bronger wrote:
>
>> 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.
No more than Python 3.0 breaks.
>> 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?
I would, but I consider "self" becoming a keyword not even in the
same league as i0, i1 etc.
Tschö,
Torsten.
--
Torsten Bronger, aquisgrana, europa vetus
Jabber ID: torsten.bronger at jabber.rwth-aachen.de
More information about the Python-list
mailing list