Skip to content
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

updated equality examples to reflect === semantics #66

Merged
merged 4 commits into from
Sep 20, 2019
Merged

Conversation

rickbutton
Copy link
Member

@rickbutton rickbutton commented Sep 19, 2019

in reference to #65

cc @bakkot

README.md Outdated
assert(#{ a: -0 } !== #{ a: +0 });
assert(#[-0] !== #[+0]);
assert(#{ a: NaN } === #{ a: NaN });
assert(#[NaN] !== #[NaN]);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Either this line or the previous line is wrong, surely?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

copy paste typo, fixed! my keyboard betrays me.

Copy link
Contributor

@bakkot bakkot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, though you might want to mention that == and Object.is match ===. (Or, if they don't, that this is an open question.)

@rickbutton
Copy link
Member Author

@bakkot good call, attempted to clarify == and Object.is

@rricard rricard merged commit 1e01235 into master Sep 20, 2019
@rricard rricard deleted the rb/equality branch September 20, 2019 16:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants