Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
order with the default comparator #55
@littledan thats a good question! The proposal originally mimic-ed the existing object behavior of indexed properties coming first, but I simplified it. I have no opinion either way, I imagine your argument for it is consistency with how objects work?
Also very good point, the default comparator will throw for symbols. This isn't a problem for
@ljharb I think that would be insertion order (modulo the integer key sorting thing I mentioned earlier), which is exactly what we don't have.
Let's discuss this in an issue. I think this could be a bit of a more detailed discussion. We really just need something well-defined.