News for hackers. Stuff that matters.
Re:ES6: The features I'm most excited about by kriro on Monday July 06, 2015 @02:11AM (#9837102)
I think .bind(this) could be added as a (more common?) alternative example to var self = this;

Personally I'm most excited about the module system. It's by far the most confusing thing for our students (and hard to google since you end up going down the rabbit hole of build systems etc.)

Re:ES6: The features I'm most excited about by v413 on Monday July 06, 2015 @02:41AM (#9837213)
With the introduction of arrow function you won't need to use .bind(this) as arrow functions capture in their lexical scope the variables/keywords: this, arguments, super.

e.g.

setTimeout(function(){alert(this.a)}.bind(this));

becomes simply

setTimeout(() => alert(this.a));

Re:ES6: The features I'm most excited about by kriro on Monday July 06, 2015 @03:50AM (#9837484)
Yes, maybe my comment wasn't clear. I meant to say add ".bind(this)" as a case that is replaced by => just like "var self = this;" or (...)(); for that matter.
Re:ES6: The features I'm most excited about by pluma on Monday July 06, 2015 @09:31AM (#9838935)
There is a proposal for a :: bind operator.

1. a unary :: operator for binding methods to their objects: `foo.then(::console.log)`

2. a binary :: operator for chaining: `x(a)::y(b)` (equivalent to `y.call(x(a), b)`)