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

Docs: ... is not an operator #11232

Merged
merged 2 commits into from Feb 11, 2019
Merged

Docs: ... is not an operator #11232

merged 2 commits into from Feb 11, 2019

Commits on Jan 2, 2019

  1. Docs: ... is not an operator

    The `...` in function call syntax is not an operator. It's more of a punctuation supported in various places (function call, function definition, array/object definitions, destructuring syntax), but specific to those. It does not produce a value like actual operators do.
    
    I'd appreciate it if we can avoid spreading (no pun intended) this misconception.
    
    While "spread argument" isn't an official term either, there is none (https://www.ecma-international.org/ecma-262/9.0/index.html#sec-argument-lists), it's probably the closest reasonable term.
    
    Happy for alternative suggestions though, or to hear the reasons why this shouldn't be corrected.
    fkling committed Jan 2, 2019
    Copy the full SHA
    a12fc2d View commit details
    Browse the repository at this point in the history

Commits on Feb 8, 2019

  1. Use "spread syntax"

    fkling committed Feb 8, 2019
    Copy the full SHA
    1e4cc13 View commit details
    Browse the repository at this point in the history