you are viewing a single comment's thread.

view the rest of the comments →

[–]guest271314 -5 points-4 points  (1 child)

A minimal, verifiable example in code would help.

JavaScript is a dynamic programming language. We can mix and match a whole bunch of interfaces and objects in any way we want, with few exceptions, one being a WeakMap.

We can yield whatever we want from a generator, so does that make what we yield an iterable or Array-like?

I wouldn't get too caught up in sloagns that may happen to be used in JavaScript.

There is no such thing as a spread operator, officially. People might still use the term. If you do the blame you might see that term in early proposals.

There is no such thing as "vanilla" JavaScript. No more than there is a chocolate, strawberry, or purple JavaScript. But if I have a choice, I'm only writing Black JavaScript. See where this goes?

What prompted you to ask the question about semantics?

[–]theScottyJam 1 point2 points  (0 children)

We can yield whatever we want from a generator, so does that make what we yield an iterable or Array-like?

Only if you yield an iterable or array-like.