-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Editorial: Give TypedArraySortCompare its own sub-clause #2302
Conversation
You can suppress whitespace-only diffs by appending ?w=1, incidentally. |
Or, more visually: |
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.
i like it
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.
Sure, this is fine. I'd prefer to factor out the closed-over aliases to parameters in a future PR. Or possibly use a spec closure?
(See issue #1884.) I think it would be easiest to just add them as parameters. On the other hand, if you want to factor out Array.p.sort and TypedArray.p.sort's commonalities into an abstract operation, then that would be easier if you recast SortCompare and TypedArraySortCompare as abstract closures that capture the extra aliases. If you're interested in the latter, this PR would just be churn. |
Let’s add them as params right now then :-) the closed-over things are icky - even if we still refactored the two later. |
3d0c24c
to
7a79833
Compare
31d9ccd
to
bb18dcc
Compare
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.
+1 to taking them as parameters.
One problem with adding |
I'm fine with addressing it in a follow-up. Let's merge this as-is. |
(Salvaged from PR tc39#1612.)
bb18dcc
to
93183b8
Compare
(Salvaged from PR #1612.)
(GitHub's diff is not very helpful: most of the apparent diff arises from a change of indentation.)