-
Notifications
You must be signed in to change notification settings - Fork 57
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
Rest in destructuring #14
Comments
do you mean this one here? https://github.com/tddbin/katas/blob/master/katas/es6/language/rest/with-destructuring.js |
Yep |
you are absolutely right, thanks for bringing those things up. I think about how to not break things and will try to employ it, ideas/PRs welcome. |
What exactly are you afraid to break? |
all the links on http://es6katas.org/ depend on it, esp this one (which might also be used in tweets or other places, at least I did) will change |
If you are running Apache, you can use something like mod_rewrite with .htaccess to redirect users to a new url without deleting the old one. |
yep, if I did :) but it's currently all just a static page on github :) |
Well I don't think github has something like rewrite, so the only solution that comes to mind is moving your site to a separate hosting provider :) Or maybe just setting up a hosting as a proxy redirecting links to github as necessary. |
how do you like it now? https://github.com/tddbin/katas/blob/master/katas/es6/language/destructuring/rename.js |
It's better, but still a little confusing. I would say something like "assign object property values to new variables while destructuring" sounds more to the point. And "use a colon after the property name, like so |
thanks! Kind regards / Saludos / Mit freundlichen Grüßen [email protected], mobile: +49 174 300 4595 Learn ES6, one kata a day http://es6katas.org uxebu GmbH Amtsgericht Augsburg, Handelsregister HRB 28613 On Tue, Jul 28, 2015 at 12:57 PM, Eugene Maslovich <[email protected]
|
Hi!
You've grouped destructuring kata into rest parameter syntax. But I think it's not correct, because in case of destructuring you are not using rest syntax, you are using spread operator instead. It just happens that spread can behave similarly to the rest syntax. In specs it is called SpreadElement http://www.ecma-international.org/ecma-262/6.0/#sec-array-initializer. And Mozilla thinks the same https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Spread_operator.
The text was updated successfully, but these errors were encountered: