-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
<dfn> IteratorResult object #3426
Comments
I agree to linking back to the definition, but why replace the "interface" references? Are you saying it shouldn't be an interface? What about the other iteration interfaces? Note that most of them also have corresponding occurrences of "a /Foo/ object". Should the spec drop the idea of interfaces altogether? |
I think any definition of an "X object" is a description of its interface. I don't see a reason to use the term "X interface" instead of just saying "X objects". |
Saying something is a Proxy object does not just describe its interface. |
When it's defined by its interface (as with IteratorResult), yes it does. Saying "an IteratorResult object" is the same as saying "an Object that obeys the IteratorResult interface". There's just no need for the verbose latter form. |
When describing exotic objects, "an X object" means an object whose internal methods conform to the requirements specified for X objects. But when Y is an interface name, "a Y object" means an object that has properties that conform to the interface definition. While you can define things that way, I wonder if it's confusing for readers (and if leaning into the latter usage would make things more confusing). |
We use IteratorResult object as if it's a defined term but I was surprised to learn that it doesn't actually have a
<dfn>
. We also have some references to it as "the IteratorResult interface", including the place where I think it should be defined. We should add the<dfn>
and replace the "interface" references.The text was updated successfully, but these errors were encountered: