Le 24 janv. 2014 à 10:06, Bradley Meck <[email protected]> a écrit :
> (...) I still have to use new when invoking the generator function which > feels dirty in my mind. Interestingly, using `new` when invoking a generator function feels cleaner in my mind. :-) In short (and since it is somewhat off-topic), `new myGenerator` suggests the sensible idea of getting a _new_ iterator each time the expression is evaluated, while `myGenerator()` suggests nothing more that may be encoded in the name of the generator function. —Claude _______________________________________________ es-discuss mailing list [email protected] https://mail.mozilla.org/listinfo/es-discuss

