diff options
author | Massimiliano Culpo <massimiliano.culpo@gmail.com> | 2023-07-19 11:08:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-19 11:08:51 +0200 |
commit | a7f2abf9242ad321b410cc2f43b394856facba23 (patch) | |
tree | 83e9fc443e677f64ffee9d9f8d7cde1b08638456 /SECURITY.md | |
parent | a99eaa954150778624f23459bafd49ce0397b099 (diff) | |
download | spack-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 'SECURITY.md')
0 files changed, 0 insertions, 0 deletions