rhendric · GitHub

Conversation

Prior to this commit, unary operator spreading happened implicitly,
leading to surprises like typeof [] != typeof [0] (== [typeof 0]).
With this commit, a splat is required prior to the array being spread
over: typeof ...[0] == [typeof 0]. Implicit operator spreading is no
longer handled; typeof [0] is just typeof [0].
This enables ...[a, b] += 1 to have the same meaning as ++..[a, b].

Closed

8 tasks

vendethiel added a commit that referenced this pull request

Mar 15, 2016
Reform operator spread

@vendethiel

Closed

Closed

This was referenced

Jan 11, 2018

Closed

Closed

@rhendric

rhendric deleted the reform-operator-spread branch

May 4, 2023 20:16

Labels

None yet

Read the original on github.com ↗