[Python-ideas] binding vs rebinding
scott+python-ideas at scottdial.com
Fri Feb 6 20:43:06 CET 2009
Marcin 'Qrczak' Kowalczyk wrote:
> 1. Java - split
> 2. C - split
> 3. C++ - split
> 6. C# - split
Are you counting the implicit lack of a binding as a binding? "int x;"
does not bind anything to "x", technically the first time "x = ..."
appears is the first binding. Maybe I am splitting hairs, but this whole
topic is a hair splitter.
> 4. (Visual) Basic - split
> 8. Perl - split
> 10. Delphi - split
In addition to the debate above, the declarations are optional in these
languages, and in that case, they are very much the same semantics as
> 5. PHP - not split
> 7. Python - not split
> 11. Ruby - not split
With regard to *all* of these languages there is *not* a separate
assignment operator, only possibly a special statement (which in none of
these languages *require* the initial assignment). And since the debate
is about a special operator and not a special statement, all of these
languages support dropping this discussion. It really is that foreign.
scott at scottdial.com
scodial at cs.indiana.edu
More information about the Python-ideas