Weak references is related to garbage collector basically, there are good examples of how to use it in nodejs and java. It helps the garbage collector identify what it can get, not when, but which objects/vars and etc...
It's a kind of feature that will help projects like doctrine, that can consume a lot of resources because of the references through objects and so on.
Yup, I got the concept but couldn't find a real-life example. I guess I never had to deal with such type of functionality in any project, like holding big graphs of object relations.
Funny enough, Ocramius, a Doctrine core maintainer, voted against weak references feature 🤷♂️
Thanks for the comment!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
Weak references is related to garbage collector basically, there are good examples of how to use it in nodejs and java. It helps the garbage collector identify what it can get, not when, but which objects/vars and etc...
It's a kind of feature that will help projects like doctrine, that can consume a lot of resources because of the references through objects and so on.
Did you get it or it was confused?
Yup, I got the concept but couldn't find a real-life example. I guess I never had to deal with such type of functionality in any project, like holding big graphs of object relations.
Funny enough, Ocramius, a Doctrine core maintainer, voted against weak references feature 🤷♂️
Thanks for the comment!