Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ArrowExpression vs ArrowFunctionExpression #2

Closed
sebmck opened this issue Feb 12, 2015 · 12 comments
Closed

ArrowExpression vs ArrowFunctionExpression #2

sebmck opened this issue Feb 12, 2015 · 12 comments

Comments

@sebmck
Copy link

sebmck commented Feb 12, 2015

Currently both esprima and acorn use ArrowFunctionExpression.

@jeffmo
Copy link

jeffmo commented Feb 12, 2015

Esprima intends to switch to ArrowExpression in its next major release

@ariya
Copy link
Contributor

ariya commented Feb 12, 2015

...unless, per Mozilla bug 913617 above, Mozilla really executes the plan to switch from ArrowExpression to ArrowFunctionExpression.

An alternative would be to use ArrowFunction, the term used in the ES 6 grammar.

@sebmck
Copy link
Author

sebmck commented Feb 12, 2015

How about just keeping ArrowFunctionExpression?

@ariya
Copy link
Contributor

ariya commented Feb 13, 2015

I am for staying with ArrowFunctionExpression, I still think that's the most descriptive name. But that depends if SpiderMonkey is going to change Reflect.parse or not. IIRC this didn't happen (yet) because there are other Mozilla tooling relying on ArrowFunction.

@mikesherov
Copy link
Contributor

@dherman, care to fill us in on plans here?

@dherman
Copy link

dherman commented Feb 15, 2015

I'll have to ask around. I'm not sure how much tooling would have to change but I wouldn't imagine it's too bad. I'll report back.

@ariya
Copy link
Contributor

ariya commented Mar 5, 2015

@dherman Any data points on the tooling change effort?

@dherman
Copy link

dherman commented Mar 7, 2015

Looks like it shouldn't be a problem for Mozilla at all. I built https://github.com/dherman/samo and grepped the addons ecosystem and found zero uses of Reflect.parse. I searched mxr for uses in the FF front-end and there are very few. So it should be pretty easy for us to make incompatible changes.

@sebmck
Copy link
Author

sebmck commented Mar 7, 2015

Closed via 321c836.

@sebmck sebmck closed this as completed Mar 7, 2015
@dherman
Copy link

dherman commented Mar 7, 2015

For reference I've submitted a SpiderMonkey patch for feedback: https://bugzilla.mozilla.org/show_bug.cgi?id=913617#c2

@dherman
Copy link

dherman commented Mar 13, 2015

My fix to SpiderMonkey landed so hopefully by tomorrow Firefox Nightlies will have ArrowFunctionExpression.

https://bugzilla.mozilla.org/show_bug.cgi?id=913617#c13

@RReverser
Copy link
Member

Cool! I guess we can merge #45 now?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants