by kriro · 11y ago · 0 comments
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.)
e.g.
setTimeout(function(){alert(this.a)}.bind(this));
becomes simply
setTimeout(() => alert(this.a));
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)`)