Commit 2b01f08
committed
Remove misleading "deep equality" claim.
Testing tuple equality with === gives results identical to testing the
*shallow* identities of the elements in the tuple. Equality checking does
not recurse further into the elements of the tuple (nor should it), so
"deep equality checking" could be misleading.
Deeply nested tuples containing other tuples can be deeply compared in
constant time using ===, of course, and this property would extend to
other internalized persistent data structures. Nevertheless, it's
important for users to realize that this library treats "normal" objects
and primitive values the same way a Map would treat them.
With that said, "constant-time equality testing (===)" is still an
accurate claim without the "deep" adjective.1 parent 4cb2e7e commit 2b01f08
2 files changed
+3
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
| 38 | + | |
38 | 39 | | |
39 | 40 | | |
40 | 41 | | |
| |||
0 commit comments