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

`spread` is mistakenly called "an operator" in the introduction section of ES2018 #1295

Open
zerkms opened this Issue Aug 23, 2018 · 1 comment

Comments

Projects
None yet
3 participants
@zerkms

zerkms commented Aug 23, 2018

It also includes rest parameter and spread operator support for object properties.

(highlight is mine) https://www.ecma-international.org/ecma-262/9.0/index.html#sec-intro

Syntactically it's not an operator, so I think the wording should be changed to "spread syntax" or something like that.

@fkling

This comment has been minimized.

Show comment
Hide comment
@fkling

fkling Aug 23, 2018

Contributor

Since this is specific to objects, maybe it should be "rest properties" and "spread properties" or "object rest" and "object spread".

Both "rest parameter" and "spread operator" are confusing at best and plain wrong at worst in the context of objects (what is a parameter in the context of objects??).

The terminology used in the spec, even in non-normative sections, should be as precise as possible IMO.

Contributor

fkling commented Aug 23, 2018

Since this is specific to objects, maybe it should be "rest properties" and "spread properties" or "object rest" and "object spread".

Both "rest parameter" and "spread operator" are confusing at best and plain wrong at worst in the context of objects (what is a parameter in the context of objects??).

The terminology used in the spec, even in non-normative sections, should be as precise as possible IMO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment