purescript/purescript-record

Is equality on records order independent?

chrisdone opened this issue · 1 comments

The docs don't say.

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).