Skip to content
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

Merged
merged 3 commits into from May 21, 2020

Conversation

inexorabletash
Copy link
Member

@inexorabletash inexorabletash commented May 19, 2020

The following tasks have been completed:

  • Confirmed there are no ReSpec/BikeShed errors or warnings.

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

@inexorabletash
Copy link
Member Author

@domenic - no good deed goes unpunished - can you take a look? Thanks!

Copy link
Contributor

@domenic domenic left a 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.

index.bs Outdated Show resolved Hide resolved
index.bs Outdated Show resolved Hide resolved
@inexorabletash
Copy link
Member Author

One more look, @domenic?

Copy link
Contributor

@domenic domenic left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice!

@inexorabletash inexorabletash merged commit ad63b35 into master May 21, 2020
@inexorabletash inexorabletash deleted the algorithm branch July 23, 2020 16:15
inexorabletash added a commit that referenced this pull request Feb 1, 2021
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants