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

Is equality on records order independent? #45

Closed
chrisdone opened this issue May 2, 2018 · 1 comment
Closed

Is equality on records order independent? #45

chrisdone opened this issue May 2, 2018 · 1 comment

Comments

@chrisdone
Copy link

The docs don't say.

@hdgarrood
Copy link
Contributor

Do you mean, is { x: 1, y: 2 } considered to be equal to { y: 2, x: 1 }? If so, the answer is yes: you can't even distinguish these two things without observing the for-in iteration order in JS (which isn't exposed unless you use the FFI or unsafeCoerce to StrMap or something).

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

No branches or pull requests

2 participants