summaryrefslogtreecommitdiff
path: root/LICENSE-MIT
diff options
context:
space:
mode:
authorMassimiliano Culpo <massimiliano.culpo@gmail.com>2023-07-19 11:08:51 +0200
committerGitHub <noreply@github.com>2023-07-19 11:08:51 +0200
commita7f2abf9242ad321b410cc2f43b394856facba23 (patch)
tree83e9fc443e677f64ffee9d9f8d7cde1b08638456 /LICENSE-MIT
parenta99eaa954150778624f23459bafd49ce0397b099 (diff)
downloadspack-a7f2abf9242ad321b410cc2f43b394856facba23.tar.gz
spack-a7f2abf9242ad321b410cc2f43b394856facba23.tar.bz2
spack-a7f2abf9242ad321b410cc2f43b394856facba23.tar.xz
spack-a7f2abf9242ad321b410cc2f43b394856facba23.zip
Remove `LazyReference` from code (#38944)
A LazyReference object is a reference to an attribute of a lazily evaluated singleton. Its only purpose is to let developers use shorter names to refer to such attribute. This class does more harm than good, as it obfuscates the fact that we are using the attribute of a global object. Also, it can easily go out of sync with the singleton it refers to if, for instance, the singleton is updated but the references are not. This commit removes the LazyReference class entirely, and access the attributes explicitly passing through the global value to which they are attached.
Diffstat (limited to 'LICENSE-MIT')
0 files changed, 0 insertions, 0 deletions