facebook / facebook/flow

Iterator interface should not have @@iterator method

Open
#2,729 5 comments 0 reactions 0 assignees View on GitHub
bug iterators Library definitions
Dominant language
Rust
Stars
22.3k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

[25.1.1.2 The Iterator Interface](http://www.ecma-international.org/ecma-262/6.0/#sec-iterator-interface) must have only `next` method. ATM both `interface $Iterator` and `interface $Iterable` have `@@iterator` method. Why is that?

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.