some generator issues

liorean liorean at
Wed May 9 08:51:31 PDT 2007

> > Lars T Hansen wrote:
> >>   this generator
> >>
> >> names the generator object as the proposed arguments.generator would.

> On May 8, 2007, at 6:09 PM, Yuh-Ruey Chen wrote:
> > I like it. What's the operator precedence?

On 09/05/07, Brendan Eich <brendan at> wrote:
> I suggested primary, so one can write |this function.length| instead
> of having to parenthesize, or unary, by analogy to delete, void, etc.
> (so parentheses are required for a . or similar member operator).

Hmm. If unary operator, what does this do?

    this function(...){...}(...)

Is that equivalent to the following:

    this (function(...){...}(...))

or - in statement context - to this:

    (this function)(...);

or - in expression context - syntax error, because:

    (this function)(...)

directly followed by an object literal doesn't make sense?

Personally I would prefer it to be a primary expression.
David "liorean" Andersson

More information about the Es4-discuss mailing list