Code smell? Iterator prototype has iterator method that returns "this"
allen at wirfs-brock.com
Tue Jul 26 02:16:43 UTC 2016
> On Jul 25, 2016, at 4:38 PM, John Lenz <concavelenz at gmail.com> wrote:
> Yes, but at the cost of being able to reason / declare what kind of object is actually required. But, I'm sure there is nothing that can be changed here.
The kind of object that is required is one that implements the Iterable interface (i.e., has a Symbol.interable method that returns an object that implements the Iterator interface). What is unclear about that?
More information about the es-discuss