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()

On May 9, 2012, at 5:02 , Erik Arvidsson wrote:

> On Tue, May 8, 2012 at 4:24 PM, Axel Rauschmayer <[email protected]> wrote:
>> Cool. Like this?
> 
> Yup.
> 
> http://code.google.com/p/traceur-compiler/source/browse/test/feature/Yield/Tree.js#13
> 
> -- 
> erik
> 

-- 
Dr. Axel Rauschmayer
[email protected]

home: rauschma.de
twitter: twitter.com/rauschma
blog: 2ality.com

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to