[SR-3761] Conform collections, optionals of Equatable to be Equatable #46346
Labels
affects ABI
Flag: Affects ABI
conditional conformances
Feature → protocol → conformances: conditional conformances
good first issue
Good for newcomers
improvement
standard library
Area: Standard library umbrella
swift evolution implemented
Flag → feature: A feature that was approved through the Swift evolution process and implemented
Additional Detail from JIRA
md5: 6d3cdb1a04d43783843b631ae5d8ce00
Issue Description:
Arrays and Optionals currently have a definition of
==
, but do not conform toEquatable
. Conditional conformance should enable this. This should also enable arrays of optionals, arrays of arrays etc to also be equated.A proposal is needed for this. One thing to consider during the evolution process is whether all such
Collection
s should beEquatable
, with collections that need special treatment because they are unordered, e.g.Set
orDictionary
to opt-out of the default and implement their own.The text was updated successfully, but these errors were encountered: