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

Correct usage of ellipsis #18170

Merged
merged 2 commits into from
Jul 10, 2022
Merged

Correct usage of ellipsis #18170

merged 2 commits into from
Jul 10, 2022

Conversation

OnkarRuikar
Copy link
Contributor

@OnkarRuikar OnkarRuikar commented Jul 10, 2022

Fixing ellipsis before #17988 gets in.
We don't have to worry about for...of if we use ...\s.

@OnkarRuikar OnkarRuikar requested review from a team as code owners July 10, 2022 06:12
@OnkarRuikar OnkarRuikar requested review from wbamberg, teoli2003, schalkneethling and estelle and removed request for a team July 10, 2022 06:12
@github-actions github-actions bot added Content:Glossary Glossary entries Content:Learn Learning area docs Content:Other Any docs not covered by another "Content:" label Content:WebAPI Web API docs labels Jul 10, 2022
@github-actions

This comment was marked as resolved.

@teoli2003
Copy link
Contributor

The ellipsis is used for an unfinished enumeration. In most cases here, it is used to mark a pause, we should use a comma.

I'm going to edit this directly here.

@Josh-Cena Josh-Cena changed the title Fix typos Correct usable of ellipsis Jul 10, 2022
@Josh-Cena
Copy link
Member

(Or em-dashes—because who doesn't like em-dashes?)

@@ -49,7 +49,7 @@ Conditional statements allow us to represent such decision making in JavaScript,

Let's look at by far the most common type of conditional statement you'll use in JavaScript — the humble [`if...else` statement](/en-US/docs/Web/JavaScript/Reference/Statements/if...else).

### Basic if ... else syntax
### Basic if else syntax
Copy link
Member

Choose a reason for hiding this comment

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

Should this be if...else? This seems just the same as for...of.

@OnkarRuikar
Copy link
Contributor Author

OnkarRuikar commented Jul 10, 2022

The ellipsis is used for an unfinished enumeration.

It's also used for unfinished thoughts or obvious part left out. [ref]
So those at the end of lines are correct.

@@ -158,7 +158,7 @@ Back to the topic of the main loop. You will often want to know when your main f

Several other optimizations are possible and it really depends on what your game attempts to accomplish. Your game genre will obviously make a difference but it could even be more subtle than that. You could draw every pixel individually on a canvas or you could layer DOM elements (including multiple WebGL canvases with transparent backgrounds if you want) into a complex hierarchy. Each of these paths will lead to different opportunities and constraints.

## It is decision... time
## It is decision time
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
## It is decision time
## It is decision time

files/en-us/games/techniques/3d_on_the_web/webvr/index.md Outdated Show resolved Hide resolved
files/en-us/learn/accessibility/html/index.md Outdated Show resolved Hide resolved
files/en-us/web/api/audiotracklist/gettrackbyid/index.md Outdated Show resolved Hide resolved
@teoli2003
Copy link
Contributor

teoli2003 commented Jul 10, 2022

(Or em-dashes—because who doesn't like em-dashes?)

Yes, I've done a mix, depending on the place.

Authors on MDN overuse ellipsis…

@Josh-Cena
Copy link
Member

Hot take: ellipsis is just a subpar alternative of "etc." + em-dash + comma 😄

Co-authored-by: Jean-Yves Perrier <[email protected]>
@Josh-Cena Josh-Cena changed the title Correct usable of ellipsis Correct usage of ellipsis Jul 10, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Content:Glossary Glossary entries Content:Learn Learning area docs Content:Other Any docs not covered by another "Content:" label Content:WebAPI Web API docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants