-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix!: make NaN == NaN inside Expression #318
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks correct to me; I don't think I'm the one to make the call on actually deciding we want NaN==NaN
for our users, though.
Hm. Not sure how to feel about this one. Part of me wants something like |
This showed up again in #432 |
In discussion with @erichulburd today, it seems like the best approach is to take this method, but make it available under a different name rather than |
On second thought, I'm warming to the approach here actually being correct. We claim that |
39f4714
to
714eed4
Compare
|
This is the easiest way to resolve #316 in a way that doesn't break the API (the other way being to use `OrderedFloat`).
714eed4
to
2eba287
Compare
@Shadow53 I hope you don't mind, I rebased this branch, updated the proptest seed, and added the documentation I mentioned. If this looks good to folks, I think this is ready to merge (subject to CI). |
I don't feel too strongly either way and am happy to defer to you and @Shadow53 on this. |
This is the easiest way to resolve #316 in a way that doesn't break the API (the other way being to use
OrderedFloat
).Fixes #316.