> On Oct 18, 2017, at 1:20 PM, David Sweeris <daveswee...@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?
_______________________________________________ swift-evolution mailing list swift-evolution@swift.org https://lists.swift.org/mailman/listinfo/swift-evolution