-
-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update the equals function to fall back to structural equality
When comparing two values that are: 1. of the same type; and 2. do not provide a 'fantasy-land/equals'-method; but 3. also don't have a known type with a Z-provided implementation, then previously Z.equals would return false, but this false is just as reliable as a true would be. After this commit, instead of returning false, the Z.equals now returns the structural equality of the two inputs.
- Loading branch information
1 parent
e886a38
commit 43bc871
Showing
2 changed files
with
13 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters