Flight-School / AnyCodable

Type-erased wrappers for Encodable, Decodable, and Codable values
https://flight.school/books/codable
MIT License
1.28k stars 132 forks source link

Change `==` behaviours to use hashValue #60

Closed minacle closed 3 years ago

minacle commented 3 years ago

It fixes #59.

minacle commented 3 years ago

We should box the values to find out their original types. Simply storing values as Any is not a way to implement erasure types.