April 10 2014 Meeting Notes
jason.orendorff at gmail.com
Thu Apr 24 11:08:57 PDT 2014
On Tue, Apr 15, 2014 at 10:24 AM, Andreas Rossberg <rossberg at google.com> wrote:
>> JH: Iterators are claiming to Iterables, which is a lie.
> I argued this very point in the past (after a discussion with Dmitry),
> but wasn't very successful:
> I agree with you on this point, and still think that the current
> iterator/iterable model is rather incoherent and the iterable concept
> thus not really useful -- you cannot reliably write abstractions based
> on it.
Python has the same "incoherent" model and people constantly write
abstractions based on iterables in Python.
Iterators are claiming to be iterables, which is true. They are
iterable. You can iterate over them. It has well-defined behavior and
a lot of programs do it.
It's disappointing to see arguments in TC39 notes and on es-discuss
that are contradicted in the clearest possible way by ten years of
experience in a widely used language.
More information about the es-discuss