Hello everyone ! Yesterday I posted an implementat...
# announcements
b
Hello everyone ! Yesterday I posted an implementation for a possible memory/thread safe solution to add backing fields on extension variables. Thanks to your feedback I've improved it, here's the current state. Feel free to let me know if you see anything that could be improved. Cheers guys https://github.com/benoitthore/Enamel/tree/master/EnamelKotlin/src/main/java/com/thorebenoit/enamel/kotlin/core/backingfield
h
Shouldn't
IdentityWeakReference
use
===
rather than `==`:
Copy code
override fun equals(other: Any?): Boolean {
        return (other as? WeakReference<T>)?.let { it.get() == get() } ?: false
    }
Otherwise you'll have issues if/when two instances have the same hashCode
b
Yes my bad!