News for hackers. Stuff that matters.
Re:ES6: The features I'm most excited about by Kiro on Monday July 06, 2015 @04:44AM (#9837680)
> he is most excited about destructuring `let { name, age, gender } = user;`.

Why is this a big deal? Seems pretty trivial.

Re:ES6: The features I'm most excited about by robinson7d on Monday July 06, 2015 @08:59AM (#9838763)
One of the reasons that it's a big deal is because of what it means for functions. It helps make named-parameters more attractive, which can help a lot with code maintainability.

Example code: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Refe...

Additionally, it's nice sugar for module loading, for modules that export multiple values.