Nondeterministic behaviour when hashing a class
Swift Forums
Nondeterministic behaviour when hashing a class
There is an interesting discussion going on here in this post, [Pitch] Default implementation of Hashable for AnyObject. When playing with the example code posted by @mbrandonw, I noticed something unusual: nondeterministic program behaviour. // it.swift import Foundation @main enum Driver { static func main() async throws { hash_my_class () } } // [https://forums.swift.org/t/pitch-default-implementation-of-hashable-for-anyobject/88853/9] // class MyClass: Hashable { va...
There is an interesting discussion going on here in this post, [Pitch] Default implementation of Hashable for AnyObject. When playing with the example code posted by @mbrandonw,…
0 comments
No comments yet.