Swift: Tuples should be comparable by default

Originator:raise.rescue
Number:rdar://18706546 Date Originated:20-Oct-2014 01:11 PM
Status:Duplicate of 13822406 Resolved:
Product:Developer Tools Product Version:
Classification: Reproducible:
 
Summary:
Tuples that consist of items of the same types should be comparable with == and != by default, like
(1, "a") == (1, "a")
should not bring up a compiler-error but instead return true at runtime. 
However, tuples with different types should still throw a compiler-error, like
(1, 2) == (1, "2")
should not compile.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!