Andreas Rossberg wrote:
On 16 February 2015 at 15:41, Andrea Giammarchi <andrea.giammar...@gmail.com <mailto:andrea.giammar...@gmail.com>> wrote:

    Common pattern is to poll.next() a yield until its `done` property
    is `true` so that a value can be used.

    This is I believe the common case that will create thousands of
    objects to be quickly trashed as garbage ... so I was wondering if
    those are all needed


Er, I don't think this is the common use case at all. You iterate over something to process values, otherwise there isn't much point in using iterators in the first place.

/Andreas

Right.

Instead of coming up with some bogo-API with a mutable singleton object having pigeon-hole problems, how about engine hackers actually do some optimizing? I remember in the Mosaic days, Eric Bina replied to someone who decried the difficulty of fixing some ostensibly hard bug by writing the patch. :-|

/be
_______________________________________________
es-discuss mailing list
es-discuss@mozilla.org
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to