Everything about Scope (computer programming)
Part of a computer program where a given name binding is valid
In computer programming, the scope of a name binding is the part of a program in which the name binding is valid. In other words, a scope is where a name can be used to refer to an entity. In other parts of the program, the name may refer to a different entity, or to nothing at all. Scope helps prevent name collisions by allowing the same name to refer to different objects – as long as the names have separate scopes. The scope of a name binding is also known as the visibility of an entity, particularly in older or more technical literature—this is in relation to the referenced entity, not the referencing name. Wikipedia →
đź§ Start here: a 6-step reading path
- Read the overview: Scope (computer programming)A 5-minute orientation
- Pick up a classic book: Revised report on the algorithmic language ALGOL 68The most-reprinted book on the subject
- Read the landmark paper: Scope of Protection of Computer ProgramsCited 0 times
- Go sideways: Closure (computer programming)A closely related topic
- Go sideways: Local variableA closely related topic
đź“– Definitions
No dictionary entry for this exact phrase.
🗂️ The subject at a glance
🏆 Landmark papers (most cited)
📚 Books worth reading
Revised report on the algorithmic language ALGOL 68Cornelis H. A. Koster, Charles H. Lindsey · 1976
Ranked by number of editions on Open Library, a rough measure of how lasting a book is.
đź”— Related topics
- Closure (computer programming) In programming languages, a closure, also lexical closure or function closure, is a technique for implementing lexically scoped name binding in a language…
- Local variable In computer science, a local variable is a variable that is given local scope. A local variable reference in the function or block in which it is declared…
- Automatic variable In computer programming, an automatic variable is a local variable which is allocated and deallocated automatically when program flow enters and leaves…
- Common Lisp Common Lisp (CL) is a dialect of the Lisp programming language, published in American National Standards Institute (ANSI) standard document ANSI INCITS…
- First-class function In computer science, a programming language is said to have first-class functions if it treats functions as first-class citizens. This means the language…
- Variable (high-level programming language) In some high-level programming languages, a variable is an abstract storage or indirection location paired with an associated symbolic name, which contains…
- Nested function In computer programming, a nested function (or nested procedure or subroutine) is a named function that is defined within another (enclosing) block and…
- Name resolution (programming languages) In programming languages, name resolution is the resolution of the tokens within program expressions to the intended program components. Expressions in…