can I get some opinions on this implementation of ...
# codereview
r
can I get some opinions on this implementation of
equals()
?
Copy code
override fun equals(other: Any?): Boolean {
        other?.let {
            if (other !is Foo) return false
            if (other.hashCode() != hashCode()) return false
        } ?: return false
        
        return true
    }