When 2 + 2 Does Not Equal 4.0
Introduction: What Do You Mean by Equal?
What does it mean for two values to be equal? When designing a programming languages or a type, the wrong answer can create problems. It can lead to counter-intuitive surprises like in JavaScript where "" and [0] both are equal to 0 but not to each other. It can confuse programmers who expect two equal values to be the same, when they behave quite differently.








