Scopes, Functions, and Parameter Passing
摘要
In most programming languages, you can declare named entities such as variables, functions, classes, and types. Each declaration has a scope, which defines from where the declared name is visible. The rules that determine visibility of declarations are called scope rules.