πScope vs. Extent
- source
Scope and Extent are complimentary terms. Scope refers to the space where variable is visible, but Extent refers to the time the variable is valid for.
Combination of indefinite scope and dynamic extent is frequently referred to by the misnomer dynamic scope.
See also
Rust lifetimes are not about object creation/destruction but about how long the object is available at the given locationβRust lifetimes represent extent explicitly.