Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upGitHub is where the world builds software
Millions of developers and companies build, ship, and maintain their software on GitHub — the largest and most advanced development platform in the world.
ES6 feature: Rest Parameters: tracking Issue #1011
Comments
|
@ariya can you respond to the estree issue about rest and defaults? I think we may want to take acorns approach here. |
|
@mikesherov I'm not sure why we want to deviate from the existing SpiderMonkey AST for this case. |
Still errors on rest parameters for arrow function expressions for now as those are a bit more involved and require a more significant refactor. Refs jquery#1011
Still errors on rest parameters for arrow function expressions for now as those are a bit more involved and require a more significant refactor. Refs jquery#1011
Still errors on rest parameters for arrow function expressions for now as those are a bit more involved and require a more significant refactor. Refs jquery#1011
Still errors on rest parameters for arrow function expressions for now as those are a bit more involved and require a more significant refactor. Refs jquery#1011
|
Just a heads up: I was doing some experimentation and found that there's no good way to support both the harmony branch So we can really only do one or the other but not both (as opposed to |
|
@nzakas no way to add a flag rather than doing a second loop? |
|
Sure, but that's still a breaking change. My point is that existing code will break if we support both at the same time. If we need a breaking change, might as well go all the way and remove |
|
@nzakas I see, you mean consumer code. I'm +1 for removing all the way. |
|
@jeffmo ^ ? |
|
Agreed, let's rip the band-aid off |
|
Hmm, maybe I missed something, but when did I discuss keeping the compatibility? Rest parameter was not feature in 2.0 anyway. |
|
@ariya : I think the breaking-change-ness is only in reference to a breaking change within the harmony branch |
|
@ariya we sort of glossed over it in the meeting quickly. Glad we're all in agreement to just rip off the baindaid! |
|
@nzakas, you have sample code for the switch to restElement? |
|
Assuming you mean consumer code that would be confused by having both, escope is a good example: https://github.com/estools/escope/blob/master/src/referencer.js#L221 |
|
@mikesherov Anything here that is still blocking 2.1? |
|
@ariya, yes, the switch from defaults/rest properties to resElement/AssigmentPattern |
…tion.rest and Function.defaults Refs jquery#1011
Syntax:
Spec:
https://people.mozilla.org/~jorendorff/es6-draft.html#sec-functions-and-classes
Remaining Tasks: