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

Adam Kemp adam_kemp at apple.com
Wed Oct 18 15:31:09 CDT 2017


> On Oct 18, 2017, at 1:20 PM, David Sweeris <davesweeris at mac.com> wrote:
> 
> 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.

I think we have plenty of evidence that misunderstandings about floating point lead to bugs. For example: https://www.theinquirer.net/inquirer/news/1047844/floating-point-bugs-explode <https://www.theinquirer.net/inquirer/news/1047844/floating-point-bugs-explode>

It took me about 30 seconds to find a clear example for floating point, and we all know there are many many more.

Can anyone find even a single example of this function leading to a shipping bug in the real world?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.swift.org/pipermail/swift-evolution/attachments/20171018/8c0a5511/attachment.html>


More information about the swift-evolution mailing list