[swift-evolution] [Draft] Rename Sequence.elementsEqual

David Sweeris davesweeris at mac.com
Wed Oct 18 15:20:51 CDT 2017


> On Oct 18, 2017, at 1:04 PM, Adam Kemp via swift-evolution <swift-evolution at swift.org> wrote:
> 
> 
>> On Oct 18, 2017, at 12:25 PM, Thorsten Seitz via swift-evolution <swift-evolution at swift.org> wrote:
>> 
>> Therefore having `elementsEqual` as API for unordered collections is a source of bugs …
> 
> You keep saying that, and yet after repeated requests to provide evidence you still have not backed up this claim. How many bugs are caused by this? Hypotheticals are not evidence. Show us how much of a problem this is in the real world. Why do you think this is so important to fix? What impact is it going to have? If it weren’t for this thread would you even know the problem existed?

How many bugs have been caused by floating point types violating the programmer's mental model of how numbers work? To me, their both in the same category... both involve specific types that claim to adhere to a certain behavior, and both don't in sometimes subtle ways.

- Dave Sweeris


More information about the swift-evolution mailing list