Robert Brewer: > Value equality: x == y > Object equivalence: x equiv y > or: equiv(x, y) > Object identity: x is y > or: id(x) == id(y) > Now if we can only find a short English word that means > "mutually substitutable". ;) So identity means the same object, and implies equivalence. Equivalence means they will always have the same value, even if you do something to one and not the other. This implies (current value) equality. equality just means that they have the same value *now*. Since equivalence is a stronger form of equality, why not just use "===". Anything that is === will also be ==, but the extra character will mark it as special. If the mark isn't strong enough, perhaps "=~="; in math the ~ often modifies equality to mean "not identical, but close enough". equal_forever would also work, and be explicit. equal_forever has the additional advantage that it could be written as a function rather than an operator during a trial period. -jJ
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4