I'm reading effective java and at some point it mentions WeakReferences which got me to searching i...
c
I'm reading effective java and at some point it mentions WeakReferences which got me to searching if it exists in Kotlin as well. I've been using kotlin for about 2 years, but never had a need to use it. Is
WeakReference
something that's popular? Should I be using it in some typical situations of development? I understand that I won't be using the entire std-lib, but references are everywhere and so it seems like I should have come across a valid use of WeakReference by now (I mostly build android apps if it helps)
z
weakreferences are useful in some situations where you care about memory management, but in most other situations they are better avoided i think
👍 1