On Wed, May 9, 2012 at 2:07 AM, Axel Rauschmayer <[email protected]> wrote:
> Nice. It took me a few moments to figure out what is going on, though. I
> would prefer the following – slightly more explicit – code:
> if (this.left) {
> yield* this.left[iterator]();
> }
> Instead of:
> if (this.left) {
> yield* this.left;
> }
>
> That example also demonstrates why the @ notation makes sense:
> this.left.@iterator()
Hmm. It seems like the language should accept anything iterable there,
so that you can just say:
if (this.left)
yield* this.left;
I think if you have to call a .iterator method explicitly in the
course of doing simple stuff like this, we've gotten something wrong.
-j
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss