- A reference that does not protect the referenced object from collection by a garbage collector, unlike a strong reference. An object referenced only by weak references—meaning “every chain of references that reaches the object includes at least one weak reference as a link”—is considered weakly reachable, and can be treated as unreachable and so may be collected at any time. Some garbage-collected languages feature or support various levels of weak references, such as C#, Lua, Java, Lisp, Perl, Python, and PHP (since version 7.4). ← Wikipedia
This term is sponsored by: your name/company?
- Previous term: Weak code ownership
- Next term: Web
- Random term: Node Package Manager (webglossary.info/random 🎲)