-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Documentation improvements and cleanup #1891
Conversation
* A function used to compare two items while sorting a queue. | ||
* @callback Queue~Comparator | ||
* | ||
* @param {Object} a An item in the array. |
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.
Would it be better to use left
and right
here instead of a
and b
? That's the convention we seem to use elsewhere.
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.
left
and right
make somewhat more sense for something like equals
, which in better languages would be defined as infix operators, e.g. left == right
. Comparison functions seem to generally be different. MDN for JavaScript uses a, b
. Java uses o1, o2
. .NET uses x, y
.
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.
Fine by me.
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.
Is this ready then?
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.
Yeah.
Other than the couple of minor comments, this looks good to me. |
Documentation improvements and cleanup
Function
because they don't have a strict interface. For example, the signature of anEvent
listener varies from instance to instance.@namespace
syntax instead of@exports
.@exports
. Going forward,@exports
are assumed to be free functions.