Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.
Sign upModule namespace @@iterator seems strange #710
Comments
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
caridy
Oct 12, 2016
Contributor
I totally agree! I remember we touched on this a while ago, and it is just weird. Maybe @allenwb knows better, but maybe this was just a leaking definition from the time of the loader.
|
I totally agree! I remember we touched on this a while ago, and it is just weird. Maybe @allenwb knows better, but maybe this was just a leaking definition from the time of the loader. |
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
added a commit
to ajklein/ecma262
that referenced
this issue
Dec 6, 2016
ajklein
referenced this issue
Dec 6, 2016
Merged
Remove @@iterator from Module Namespace objects #747
added a commit
that referenced
this issue
Dec 20, 2016
This comment has been minimized.
Show comment
Hide comment
This comment has been minimized.
Show comment
Hide comment
ajklein
Dec 29, 2016
Contributor
This should be closed, as @@iterator has been removed from the spec.
|
This should be closed, as |
bterlson
closed this
Dec 29, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
domenic commentedOct 12, 2016
There is no other object in JS whose iterableness expresses a list of its keys. It seems strange that for module namespace objects, we are expecting people to write
whereas for other JS objects, we are expecting people to write
It makes more sense to me to require the latter pattern for all objects.
Is it appropriate to suggest removing the iterator at this stage?