Arrows Not Primary?

Rick Waldron waldron.rick at gmail.com
Mon Sep 24 06:31:30 PDT 2012


Kevin,

Do you think this is something worth adding a "Note" entry to the spec for?
If so, we should file a ticket

Thanks

Rick


On Mon, Sep 24, 2012 at 9:15 AM, Kevin Smith <khs4473 at gmail.com> wrote:

> Never mind - it's to prevent grammatical ambiguity in the concise form.
>  Sorry for the noise.
>
> Kevin
>
>
> On Mon, Sep 24, 2012 at 8:55 AM, Kevin Smith <khs4473 at gmail.com> wrote:
>
>> Looking at the July 8 Draft, I notice that arrow functions are produced
>> by AssignmentExpression, not PrimaryExpression (as function expressions
>> are).  Why is that?  Is it to limit the operators that can be applied to
>> them?
>>
>> When descent parsing, we have to drill down into primary expression to
>> parse the "maybe-paren-expresion", so it's more straightforward to parse
>> arrows there.
>>
>> Thanks!
>>  Kevin
>>
>
>
> _______________________________________________
> es-discuss mailing list
> es-discuss at mozilla.org
> https://mail.mozilla.org/listinfo/es-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mozilla.org/pipermail/es-discuss/attachments/20120924/c9da35af/attachment.html>


More information about the es-discuss mailing list