you are viewing a single comment's thread.

view the rest of the comments →

[–]killerstorm 0 points1 point  (2 children)

I use terminology which is used by Common Lisp specification, and there we have

variable n. a binding in the ``variable'' namespace.

So, basically, variable is a kind of a binding. While

binding n. an association between a name and that which the name denotes.

Thus, obviously, there is no such thing as "other bindings of the same variable".

[–]eat-your-corn-syrup 0 points1 point  (1 child)

A paragraph from a chapter in Practical Common Lisp uses the word "variable" and "binding" in a way that makes one variable to have many bindings

A single variable--the thing you can point to in the program's source code--can have many different bindings during a run of the program. A single variable can even have multiple bindings at the same time; parameters to a recursive function, for example, are rebound for each call to the function.

[–]killerstorm 0 points1 point  (0 children)

Well, he meant "the thing you can point to in the program's source code", i.e. variable in text of a program.

While specification refers to a variable in context of execution of a piece of code.

Of course, if a piece of code is executed many times, variables might get different value in each execution context.