Talk:Name binding
From Wikipedia, the free encyclopedia
Contents |
[edit] Old comments
I changed some things:
- The opening statement was vague about the scope of the article: it first mentioned "in computer science", and then later reduced that to "in programming language". I changed it to open with "in programming languages".
- Added a "Binding is conceptual and imprecise" section including a Java example.
- Merged the Ruby code and the C code examples.
- Modified some of the "binding time" paragraphs.
-- Eelis 00:46, 2005 May 23 (UTC)
re: Shallow and Deep binding - strikes me that shallow binding implements dynamic binding while deep binding implements lexical. Is this notion correct? How correct?
- I agree that that section is just a (bad) description of lexical and dynamic scope. I suggest removal and/or linking. Wouter Lievens 13:14, 1 May 2005 (UTC)
[edit] "Run time"
I disagree that binding only binds identifiers to runtime values. Many languages allow the binding of names to (for instance) types, which are purely static. This is especially true in modern typed functional languages (SML programming language), but also even in totally mainstream languages like C (typedef
). Brighterorange 19:06, 22 Jun 2005 (UTC)
[edit] Not appropriate part
17.202.33.55 has added something which definitely doesn't conform to encyclopedia format:
THE ABOVE IS WRONG. Deep and shallow binding are implementations that can be applied to either dynamic scoping or lexical scoping. Various Lisps have used both deep and shallow binding to implement dynamic scoping ("Shallow Binding in Lisp 1.5", H.G.Baker, Communications of the ACM 21, 7 (July 1978), 565-569.) and likewise both deep and shallow binding can be used to implement lexical scoping. -- James McCartney
I removed it. Integrate it in a more appropriate manner. --logixoul 15:43, 5 September 2005 (UTC)
[edit] Dynamic Binding is not name binding
There seems to be reference from dynamic binding to name binding, but the second is not a superset of the first. There are binding problems that have nothing to do with names (in form of identifiers). For example, in Eiffel dynamic binding depends on a the static and dynamic type of the run-time object and the feature (method). As Eiffel allows renaming in Inheritance, features can have different names through different classes.
[edit] Confusing
Hello, I am sorry this is my first steps in Wikipedia, there could be some mistake i am looking forward for your comments. In fact i have never heard about Name-binding, i come to this page as i was looking for a concise explanation about early-binding/late binding etc... while reading the article it's still confusing. In my opinion there is three type of binding : static , dynamic and latebinding, i quite agree with the definition proposed in the article, but i found the example quite confusing. I think i could wrote 3 examples (in Java but without the generic because i think they could me mislead in this context). So do we proceed from now ? kind regards,
- And conversely, when I think of binding, name binding is foremost in my mind, where name binding means resolving a name to an address. The article refers to types of bindings where names are no longer involved. To either kind of reader coming at this article, it is confusing. Hackwrench 21:03, 10 September 2006 (UTC)