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: Use Bikeshed's algorithm and var more better #336
Conversation
@domenic - no good deed goes unpunished - can you take a look? Thanks! |
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.
This seems pretty good, but personally I prefer avoiding using <var ignore>
for "named parameter passing", instead just using positional parameters.
I'd especially suggest avoiding mixing named and positional parameters; I identified one spot where this is done. Otherwise, many of the named parameter passing sites are done when you need to pass an operation. Those could probably be clearer if they were refactored into two steps, one to create the operation as an independent variable, and another to call the operation-accepting algorithm.
One more look, @domenic? |
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.
Nice!
Switch from <div class=algorithm> to <div algorithm> to get better var highlighting/checking. A consequence of this is fixing issues, the biggest one being places where algorithm A calls into B with named parameters, e.g. "with foo as bar". In that case, "bar" needs to be called out with <var ignore>. Named arguments removed in favor of positional arguments everywhere. Also, the convoluted phrasing around passing an operation to "asynchronously execute..." was simplified by making the operation assembly into an anonymous algorithm a separate step. A few other glitches were noticed along the way, e.g. in domintro sections, some non-normative text was correctly marked as asides, and a few incorrect variables were fixed. Big thanks to @domenic for his suggestions and guidance here.
The following tasks have been completed:
Switch from
<div class=algorithm>
to<div algorithm>
to get better var highlighting/checking. A consequence of this is fixing issues, the biggest one being places where algorithm A calls into B with named parameters, e.g. "with foo as bar". In that case, "bar" needs to be called out with<var ignore>
.A few other glitches were noticed along the way, e.g. in domintro sections, some non-normative text was correctly marked as asides, and a few incorrect variables were fixed.
Preview | Diff