title: Swift, how to implement Hashable protocol based on object reference?
body: <p>I've started to learn swift after Java. In Java I can use any object as a key for HashSet, cause it has default <code>hashCode</code> and <code>equals</code> based on object identifier. How to achieve the same behaviour in Swift?</p>